This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • 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: 22472
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: 3179
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)
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!