It's not a secret anymore!
The moose likes Java in General and the fly likes Converting long timestamp to utc long timestamp. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Converting long timestamp to utc long timestamp." Watch "Converting long timestamp to utc long timestamp." New topic
Author

Converting long timestamp to utc long timestamp.

Ivan Prokopenko
Greenhorn

Joined: Nov 15, 2010
Posts: 3
How long timestamp geted with System.currentTimeMillis() can be converted to UTC long timestamp?
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19728
    
  10

I googled "UTC long timestamp" and didn't get a clear idea of what that means. So... what is it?
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3151
    
  33

I think its- long value of timestamp(milliseconds) in UTC timezone. You can try using SimpleDateFormat class- where you can specify the format and the timezone. Obtain the Date object from that and then you can get the timestamp in milliseconds(long value)


Mohamed Sanaulla | My Blog
 
Have you checked out Aspose?
 
subject: Converting long timestamp to utc long timestamp.
 
jQuery in Action, 3rd edition