GIDForums  

Go Back   GIDForums > Computer Programming Forums > Java Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 18-Feb-2007, 21:33
8bitnespunk 8bitnespunk is offline
New Member
 
Join Date: Feb 2007
Posts: 2
8bitnespunk is on a distinguished road

getting system time


Hello,

I'm writing a program where I would like to create a Date from the systems date and time. Any insight on how to do this?

i have been importing Java.Util.Date, but I'm having trouble finding a way to get it to set using the system time.
  #2  
Old 19-Feb-2007, 15:53
TurboPT's Avatar
TurboPT TurboPT is offline
Senior Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 1,280
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: getting system time


Most 'Date' things have been deprecated in favor of the 'Calendar' class...

See this:
http://www.rgagnon.com/javadetails/java-0106.html
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
 
 

Recent GIDBlogNot selected for officer school by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Asynchronous transfer question crystalattice Miscellaneous Programming Forum 2 24-Jan-2007 20:39
constructors/classes mapes479 C++ Forum 3 19-Nov-2006 17:34
Track change in system time Poolan C++ Forum 3 19-Nov-2004 04:08
INtime real time system usage Bernard Computer Software Forum - Windows 0 28-Jul-2004 04:11
[CONTEST?]Data Structure Test dsmith C Programming Language 2 06-Jun-2004 15:13

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 18:55.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.