Article View: borland.public.jbuilder.java.language
Article #18426Re: Date class returning wrong time
From: Mark Steele
Date: Mon, 29 Jun 1998 00:00
Date: Mon, 29 Jun 1998 00:00
21 lines
1052 bytes
1052 bytes
Check Your locale. It may be set to Pacific time if you are on the east coast hence 3 hours early. Just a guess. Dan MacLeod wrote in message <6n8cka$1gj9@forums.borland.com>... >This code returns a time that is three hours earlier then the real time, >does anyone have any idea? > >Thanks, >Dan > > >SimpleDateFormat simpleTimeFormat = new SimpleDateFormat(); >DateFormat timeFormat = simpleTimeFormat.getTimeInstance(DateFormat.SHORT); >timeString = timeFormat.format(todaysDate); > >-- >Dan MacLeod > >dmacleod@gate.net > >
Technical Details
Message-ID:
<6n8th5$e2s@bgtnsc01.worldnet.att.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6n8cka$1gj9@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,5624f1d36c8aea95 X-Google-Attributes: gidf74b3,public From: "Mark Steele" <steelecress@worldnet.att.net> Subject: Re: Date class returning wrong time Date: 1998/06/29 Message-ID: <6n8th5$e2s@bgtnsc01.worldnet.att.net> X-Deja-AN: 367206421 References: <6n8cka$1gj9@forums.borland.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: AT&T WorldNet Services Newsgroups: borland.public.jbuilder.java.language