daylight savings time change
Scott van Looy
scott at ethosuk.org.uk
Wed Jan 10 14:24:03 UTC 2007
On Jan 11 Tim did spake thusly:
> On Wed, 2007-01-10 at 09:12 -0500, Gene Poole wrote:
>> To maintain platform independence Java does not acquire the date time
>> from the OS, but does it's own calculations.
>
> I presume you don't mean the JRE. I've never seen any way that you
> could tell it to use a particular timezone, so it must be able to tell
> what your local one is by itself.
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Date.html
It gets the date from the host OS. It counts (same as unix) in
milliseconds from 1 Jan 1970.
--
Scott van Looy - email:me at ethosuk.org.uk | web:www.ethosuk.org.uk
site:www.freakcity.net - the in place for outcasts since 2003
PGP Fingerprint: 7180 5543 C6C4 747B 7E74 802C 7CF9 E526 44D9 D4A7
-------------------------------------------
|/// /// /// /// WIDE LOAD /// /// /// ///|
-------------------------------------------
A person with one watch knows what time it is; a person with two watches is
never sure. Proverb
More information about the fedora-list
mailing list