This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Constructing a Date from a long Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Constructing a Date from a long" Watch "Constructing a Date from a long" New topic
Author

Constructing a Date from a long

Barry Brashear
Ranch Hand

Joined: Jun 05, 2001
Posts: 303
Can someone show me an example of constructing a Date class from a long?
What would the long value look like for say a time of 1:45 PM?

Thanks.
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3432
    
  12


The value of the long is
the specified number of milliseconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT.

[ September 29, 2006: Message edited by: Joanne Neal ]

Joanne
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Constructing a Date from a long
 
Similar Threads
how can i get previous Date from java.sql.Date object
Converet from java.sql.Timestamp to java.util.Date
Manipulation Date Time In RMS
how to call web services in JSP?
Get Date from a long