• Post Reply Bookmark Topic Watch Topic
  • New Topic

Converting long timestamp to utc long timestamp.  RSS feed

 
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: 22829
43
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
Bartender
Posts: 3185
34
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
Boost this thread!