Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » SWT Date Time in 24 hours format
SWT Date Time in 24 hours format [message #538179] Sun, 06 June 2010 05:31 Go to next message
Bonny Fog is currently offline Bonny Fog
Messages: 11
Registered: August 2009
Junior Member
hello
SWT DateTime shows time in 12 hours format. how can I make it in 24 hours format?
Re: SWT Date Time in 24 hours format [message #538277 is a reply to message #538179] Mon, 07 June 2010 08:06 Go to previous messageGo to next message
Roland Tepp is currently offline Roland Tepp
Messages: 336
Registered: July 2009
Senior Member
6.06.2010 8:31, Bonny Fog kirjutas:
> hello
> SWT DateTime shows time in 12 hours format. how can I make it in 24
> hours format?

To the best of my knowledge, the SWT DateTime widget only displays time
in whatever time format is set in your underlying platform.

There is no way to override this from Java's side of things.

--
Roland Tepp
Re: SWT Date Time in 24 hours format [message #539299 is a reply to message #538277] Thu, 10 June 2010 10:24 Go to previous messageGo to next message
Vijay Raj
Messages: 608
Registered: July 2009
Senior Member
u can use custom date time controls provided by
http://www.eclipse.org/nebula/


---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
Re: SWT Date Time in 24 hours format [message #1238836 is a reply to message #538277] Sun, 02 February 2014 15:45 Go to previous messageGo to next message
Baruch Youssin is currently offline Baruch Youssin
Messages: 25
Registered: April 2013
Junior Member
>To the best of my knowledge, the SWT DateTime widget only displays time
>in whatever time format is set in your underlying platform.
--Unfortunately, this is true only on Windows. On Linux, the time format is always 12 hours AM/PM. As far as I can see, it is hard-coded in the DateTime.java.
Re: SWT Date Time in 24 hours format [message #1238880 is a reply to message #1238836] Sun, 02 February 2014 19:05 Go to previous message
Baruch Youssin is currently offline Baruch Youssin
Messages: 25
Registered: April 2013
Junior Member
I have found it already being listed as a bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=337468
(On Linux, the DateTime shows only 12 hours clock irrespectively of the system settings.)
Previous Topic:ScrolledForm Layout Problem
Next Topic:TreeViewer vs TableViewer
Goto Forum:
  


Current Time: Fri Sep 19 18:09:38 GMT 2014

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

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