• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Converting long timestamp to utc long timestamp.

 
Ivan Prokopenko
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How long timestamp geted with System.currentTimeMillis() can be converted to UTC long timestamp?
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I googled "UTC long timestamp" and didn't get a clear idea of what that means. So... what is it?
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic