Article View: borland.public.jbuilder.java.language
Article #18688Re: System time
From: Jeffrey I. Schiller
Date: Mon, 18 May 1998 00:00
Date: Mon, 18 May 1998 00:00
11 lines
991 bytes
991 bytes
System.getCurrentTimeMillis() is defined to return UTC (GMT). How you
obtain local time depends on which version of the JDK you are coding to.
For 1.0 you use the Date object. For 1.1 you make use of the Date,
Calendar and DateFormat objects/classes.
I don't know why you are getting GMT+1, but I suspect either a bug or a
misconfiguration of your local hardware (probably having to do with
"Daylight Savings Time" or "Summertime".
-Jeff
Technical Details
Message-ID:
<6jqo1a$mmp@bgtnsc02.worldnet.att.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6jirrf$haf5@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,57190fe372fb50d6 X-Google-Attributes: gidf74b3,public From: "Jeffrey I. Schiller" <jis5@worldnet.att.net> Subject: Re: System time Date: 1998/05/18 Message-ID: <6jqo1a$mmp@bgtnsc02.worldnet.att.net> X-Deja-AN: 354484779 Content-Transfer-Encoding: 7bit References: <6jirrf$haf5@forums.borland.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: AT&T WorldNet Services Newsgroups: borland.public.jbuilder.java.language