wood burning stoves 2.0*
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
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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: 3064
    
  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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Converting long timestamp to utc long timestamp.
 
Similar Threads
Problem with Date Format - UTC
TimeStamp - changed by my DB?
How to calculate time of different countries
Problem inserting a date into postgres
Date and time componet