What is the baseline date for the Google default time format?

Click For Summary

Discussion Overview

The discussion revolves around the interpretation of a 10-digit number in an XML file that appears to represent time, specifically questioning the baseline date from which this time is measured. The conversation touches on concepts of time representation in computing, particularly Unix time.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant suggests that the 10-digit number likely represents seconds from a baseline date, inquiring about what that date might be.
  • Another participant mentions "date serial" and "time serial" as methods of storing dates and times as numbers, providing a link for further reading.
  • Several participants propose that the number represents Unix time, with a specific range of dates identified based on the number provided.
  • One participant confirms that Unix time counts seconds since January 1, 1970, and notes that leap seconds are not accounted for in this system.
  • Another participant expresses concern about the complexity of converting between Unix time and other date formats, mentioning potential issues with varying month lengths.
  • A later reply mentions the existence of conversion functions and online tools for translating Unix time, although the specific formula is not provided.

Areas of Agreement / Disagreement

Participants generally agree that the 10-digit number likely represents Unix time, but there is no consensus on the ease of conversion to other date formats, with some expressing challenges in the process.

Contextual Notes

There are unresolved aspects regarding the conversion process between Unix time and other date formats, particularly concerning the handling of varying month lengths and leap seconds.

WWGD
Science Advisor
Homework Helper
Messages
7,785
Reaction score
13,046
TL;DR
How to decode Google time into Human.
Hi,
Just opened some .xml file in which time is given as a 10 digit number starting with 1570. I assume it represents the number of seconds from some baseline date. Anyone know if this is it and if so, the baseline date?
Thanks.
 
Computer science news on Phys.org
Last edited:
WWGD said:
Thank you. Just looked it up , it is the number of seconds from/since January 1 00:00 . I will start using it ;).
Yes, Unix time is the number of seconds since 00:00 on 1 January 1970. Note that leap seconds are ignored i.e. each day in Unix time is exactly 86,400 seconds.
 
  • Like
Likes   Reactions: WWGD
pbuk said:
Yes, Unix time is the number of seconds since 00:00 on 1 January 1970. Note that leap seconds are ignored i.e. each day in Unix time is exactly 86,400 seconds.
Yes, thanks, my bad, I just edited. it seems kind of a pain to go back and forth between the dating systems. I guess we divide by 31557600 and add the quotient to 1970, then we kind of run into issues with the remainder since months have unequal number of days. Not impossible but doesn't seem straightforward. Sure someone has come up with a nice enough translator. Edit: Will look one up and post it if I find one when I get more time.
 
There's actually a cunning formula which I can't lay my hands on at the moment, but conversion functions exist for most languages, or you can use any of many online converters (search 'unix converter' or 'epoch converter').

Edit: or use this one:
 
Last edited:
  • Like
Likes   Reactions: WWGD

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K