Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » DateTime widget with localization(SWT DateTime widget)
DateTime widget with localization [message #909400] Fri, 07 September 2012 04:59 Go to next message
George R Malary is currently offline George R MalaryFriend
Messages: 36
Registered: March 2012
Location: New Jersey
Member
I am using the DateTime widget to display time. Is there a way to have it show AM/PM for certain locales, and automatically adjust to 24 hour time format for other locales? If not, how can I use the DateTime widget to show AM/PM? I keep getting a 24 hour time ticker.

I've tried using SWT.SHORT style, but this just gets rid of the seconds from the 24 hour time format.

Regards,

George
Re: DateTime widget with localization [message #909438 is a reply to message #909400] Fri, 07 September 2012 06:26 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
no... currently it's not possible to show AM/PM on DateTime widget (I
think it's not possible in SWT DateTime widget too). Please open an
enhancement request if you really need it.
Best,
Ivan

On 9/7/2012 7:59 AM, George R Malary wrote:
> I am using the DateTime widget to display time. Is there a way to
> have it show AM/PM for certain locales, and automatically adjust to 24
> hour time format for other locales? If not, how can I use the
> DateTime widget to show AM/PM? I keep getting a 24 hour time ticker.
>
> I've tried using SWT.SHORT style, but this just gets rid of the
> seconds from the 24 hour time format.
>
> Regards,
>
> George

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: DateTime widget with localization [message #909775 is a reply to message #909438] Fri, 07 September 2012 19:11 Go to previous message
George R Malary is currently offline George R MalaryFriend
Messages: 36
Registered: March 2012
Location: New Jersey
Member
Thanks for the reply Ivan.

I'm guessing Nebula's CDateTime widget is not supported by RAP?

Is there any alternative widgets or means to display Time in a localized manner? Any ideas I can work with?
Previous Topic:JFace ControlDecoration not consistent.
Next Topic:RWT Exception after Refresh of the current page
Goto Forum:
  


Current Time: Fri Apr 19 11:19:51 GMT 2024

Powered by FUDForum. Page generated in 0.01753 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top