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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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).