🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
4 messages
4 total messages Started by Vander Wed, 11 Aug 2004 07:25
System Time-Millis
#984
Author: Vander
Date: Wed, 11 Aug 2004 07:25
8 lines
1130 bytes
May sound stupid, but there is an uncertainty about the funktion

System.currentTimeMillis()

It is not said in the documentation whether the resulting value reflects 
the current UTC time or the current local time. Any further help there?

- Vander
Re: System Time-Millis
#987
Author: Tad Frysinger
Date: Wed, 11 Aug 2004 12:36
18 lines
1551 bytes
Vander wrote:

> May sound stupid, but there is an uncertainty about the funktion
> 
> System.currentTimeMillis()
> 
> It is not said in the documentation whether the resulting value reflects 
> the current UTC time or the current local time. Any further help there?
> 
> - Vander
> 
My docs say that it is "the difference, measured in milliseconds, 
between the current time and midnight, January 1, 1970 UTC".

Further, it says to review the Date class doc for more info. That doc 
also implies it is UTC, but in a "modified" way.

Tad Frysinger (TeamB)
Re: System Time-Millis
#988
Author: Vander
Date: Wed, 11 Aug 2004 17:34
33 lines
2071 bytes
I must disagree, the docs are not precise!

A difference is between two points, here in the continuum of time. :)
"midnight, January 1, 1970 UTC" is one of these points, where is the other?

All that is said is "current time". But what is current time? It could 
be UTC again or some local time, adding an offset to the UTC value. The 
Date class doesn't bring more light on that topic either.

- Vander


Tad Frysinger wrote:

> Vander wrote:
>
>> May sound stupid, but there is an uncertainty about the funktion
>>
>> System.currentTimeMillis()
>>
>> It is not said in the documentation whether the resulting value 
>> reflects the current UTC time or the current local time. Any further 
>> help there?
>>
>> - Vander
>>
> My docs say that it is "the difference, measured in milliseconds, 
> between the current time and midnight, January 1, 1970 UTC".
>
> Further, it says to review the Date class doc for more info. That doc 
> also implies it is UTC, but in a "modified" way.
>
> Tad Frysinger (TeamB)
Re: System Time-Millis
#990
Author: Kevin Dean
Date: Thu, 12 Aug 2004 11:55
54 lines
2849 bytes
It's the number of seconds from midnight, January 1, 1970 UTC, full stop.
Regardless of your time zone, if you adjust that time to your local time
(e.g. for Eastern Standard Time, 7:00pm, December 31, 1969 EST) and then
adjust the time returned by System.currentTimeMillis(), the difference is
still the same number of milliseconds.  The value returned by this function
does not change based on your time zone.

-- 
Check out our latest white papers at
http://www.datadevelopment.com/papers/index.html

BladeNET Scores With Borland Enterprise Tools
Team Development with JBuilder and Borland Enterprise Server

Dolphin Data Development Ltd.
http://www.datadevelopment.com/

"Vander" <874505@gmx.de> wrote in message
news:411a5865@newsgroups.borland.com...
> I must disagree, the docs are not precise!
>
> A difference is between two points, here in the continuum of time. :)
> "midnight, January 1, 1970 UTC" is one of these points, where is the
other?
>
> All that is said is "current time". But what is current time? It could
> be UTC again or some local time, adding an offset to the UTC value. The
> Date class doesn't bring more light on that topic either.
>
> - Vander
>
>
> Tad Frysinger wrote:
>
> > Vander wrote:
> >
> >> May sound stupid, but there is an uncertainty about the funktion
> >>
> >> System.currentTimeMillis()
> >>
> >> It is not said in the documentation whether the resulting value
> >> reflects the current UTC time or the current local time. Any further
> >> help there?
> >>
> >> - Vander
> >>
> > My docs say that it is "the difference, measured in milliseconds,
> > between the current time and midnight, January 1, 1970 UTC".
> >
> > Further, it says to review the Date class doc for more info. That doc
> > also implies it is UTC, but in a "modified" way.
> >
> > Tad Frysinger (TeamB)
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads