1

So I got a timestamp from Google API in the following format:

2012-08-21T20:19:08.452Z

My question is...What is that .452 preceding the Z? I believe Z denotes Zulu time aka UTC, but what is that .452....Are those fractions of a second?

pillarOfLight
  • 8,592
  • 15
  • 60
  • 90

1 Answers1

7

Yes, those are fractions of a second. That is the ISO 8601 date format, by the way (specifically, the RFC 3339 subset of it).

If you want to convert it to a Unix timestamp, you can use PHP's strtotime function (since you tagged this question php).

Snowball
  • 11,102
  • 3
  • 34
  • 51
  • 3
    Aww rats, you beat me to the answer by literally a *fraction of a second* (pun intended) :( +1 – Moritz Aug 21 '12 at 20:35