Im doing a fetch to get a date from a database in java (the date should always be 2014-01-01T00:00:00
). I'm getting the following time returned: 2014-01-01T00:00:00.588Z
.
My questions is, what is the "588Z
" at the end? and would this number be different the retrieve was done in a different timezone? i.e. would the number 588 be a different number in a different time zone.
Thanks for any help I may get.
Z is shorthand for the UTC timezone.
Z stands for UTC (that is GMT, but standard): http://en.wikipedia.org/wiki/Coordinated_Universal_Time
The
Z
stands for the zero UTC offset.The portion immediately before the
Z
translates into fraction of second; here,588
.From your question above,
00:00:00.588
means "about a half second past midnight", with the last three digits after the period,588
, translating: milliseconds.... more details here on (ISO 8601 standard).