What is the format of Chrome's timestamps?

前端 未结 6 1231
隐瞒了意图╮
隐瞒了意图╮ 2020-12-13 00:33

I\'m using SQLite Database Browser to read information from a database containing the browsing history for Google Chrome. My current code that I am executing in the \"Execut

6条回答
  •  独厮守ぢ
    2020-12-13 01:10

    visits.visit_time is in microseconds since January 1, 1601 UTC which is similar but not to be mistaken for Windows filetime which is the number of 100 nanoseconds since January 1, 1601 UTC.

    Trivia: Why 1601?
    I think the popular answer is because the Gregorian calendar operates on a 400-year cycle, and 1601 is the first year of the cycle that was active at the time Windows NT was being designed. In other words, it was chosen to make the math come out nicely. January 1, 1601 is origin of COBOL integer dates. It is also day 1 by ANSI date format. And if you speculate further according to ISO8601 which is the format in which it is in, ISO8601 works as far back as the year 1581. Prior to 1583 time was based on the proleptic Gregorian calendar which has 366 days per year. Perhaps they just rounded up to the next century.


    downloads.start_time is the number of seconds since January 1, 1970 UTC

    Trivia: Why 1970?
    Well, I'm glad you asked.. It didn't used to be.. Originally it was January 1, 1971 but was later rounded to January 1, 1970. January 1, 1970 is considered to be the birth of UNIX.

    It's worth noting that Firefox formats time as the number of microseconds since January 1, 1970 and the name for the format is PRTime

    All of these are in an ISO 8601 EPOCH format.

提交回复
热议问题