wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Get time in seconds/mili seconds 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 » Beginning Java
Bookmark "Get time in seconds/mili seconds" Watch "Get time in seconds/mili seconds" New topic
Author

Get time in seconds/mili seconds

SoonAnn Lim
Ranch Hand

Joined: Jun 21, 2001
Posts: 155
Hi,
Can someone give me some guide on obtaining gm time on a particular date? For instance, how can i get the seconds since epoch have evolved on 2001 Oct 30 00:00:00? Thanks a lot.
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
Use a method in the Date class.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Get time in seconds/mili seconds
 
Similar Threads
unable to retrieve timestamp in my servlet
How to convert hours,minutes,seconds to seconds
Math on Time of Day
How to get "HH:mm:ss" from a long ?
unable to retrieve timestamp in my servlet