[][src]Crate epochs

Convert various epoch times to chrono::NaiveDateTime times.

Functions

apfs

APFS time is the number of nanoseconds since the Unix epoch. Cf., APFS filesystem format (https://blog.cugu.eu/post/apfs/).

chrome

Chrome time is the number of microseconds since 1601-01-01, which is 11,644,473,600 seconds before the Unix epoch.

cocoa

Cocoa time is the number of seconds since 2001-01-01, which is 978,307,200 seconds after the Unix epoch.

google_calendar

Google Calendar time seems to count 32-day months from the day before the Unix epoch. @noppers worked out how to do this.

icq

ICQ time is the number of days since 1899-12-30. Days can have a fractional part.

java

Java time is the number of milliseconds since the Unix epoch.

mozilla

Mozilla time (e.g., Firefox) is the number of microseconds since the Unix epoch.

symbian

Symbian time is the number of microseconds since the year 0, which is 62,167,219,200 seconds before the Unix epoch.

to_apfs
to_chrome
to_cocoa
to_google_calendar
to_icq
to_java
to_mozilla
to_symbian
to_unix
to_uuid_v1
to_windows_date
to_windows_file
unix

Unix time is the number seconds since 1970-01-01.

uuid_v1

UUID version 1 time (RFC 4122) is the number of hectonanoseconds (100 ns) since 1582-10-15, which is 12,219,292,800 seconds before the Unix epoch.

windows_date

Windows date time (e.g., .NET) is the number of hectonanoseconds (100 ns) since 0001-01-01, which is 62,135,596,800 seconds before the Unix epoch.

windows_file

Windows file time (e.g., NTFS) is the number of hectonanoseconds (100 ns) since 1601-01-01, which is 11,644,473,600 seconds before the Unix epoch.