🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #990

Re: System Time-Millis

#990
From: 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)
>
Technical Details
Message-ID: <411b5a99$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4119c99d$1@newsgroups.borland.com> <411a12da$1@newsgroups.borland.com> <411a5865@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,1d96eb1aab1a68b5
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Kevin Dean" <NkOdSePaAnM@datadevelopment.com>
Newsgroups: borland.public.jbuilder.java.swing
References: <4119c99d$1@newsgroups.borland.com> <411a12da$1@newsgroups.borland.com> <411a5865@newsgroups.borland.com>
Subject: Re: System Time-Millis
Date: Thu, 12 Aug 2004 07:55:02 -0400
Lines: 56
Organization: Dolphin Data Development Ltd.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 24.57.150.243
Message-ID: <411b5a99$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1092311705 24.57.150.243 (12 Aug 2004 04:55:05 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail