🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8028

time and date classes

#8028
From: Dave Cullen
Date: Fri, 27 Apr 2001 18:35
12 lines
1128 bytes
I'm making a clock application, and I need to get String or integer
representations of the current system time hours and minutes.

The Date class is depricated and replaced with GregorianCalendar. But
GregorianCalendar.getTime() returns a Date object.

Ummm....?

What are the best methods for retrieving the date and parsing the result?

Thanks.
drc
Technical Details
Message-ID: <3ae9bac9$1_1@dnews>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!news-out.visi.com!hermes.visi.com!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,bbd9694ac963e101,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-04-27 12:16:04 PST
From: "Dave Cullen" <no_spam@mail.com>
Newsgroups: borland.public.jbuilder.java.language
Subject: time and date classes
Date: Fri, 27 Apr 2001 14:35:39 -0400
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 208.236.78.2
Message-ID: <3ae9bac9$1_1@dnews>
X-Trace: dnews 988396233 208.236.78.2 (27 Apr 2001 11:30:33 -0700)
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!news-out.visi.com!hermes.visi.com!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews