File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 18110
    
    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: 3054
    
  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
TimeStamp - changed by my DB?
Date and time componet
Problem with Date Format - UTC
Problem inserting a date into postgres
How to calculate time of different countries