Difference between revisions of "Time Epochs"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
Here's some of the time formats that Truxton can handle. | Here's some of the time formats that Truxton can handle. | ||
[https://en.wikipedia.org/wiki/Epoch_(computing) Wikipedia] has a better list. | [https://en.wikipedia.org/wiki/Epoch_(computing) Wikipedia] has a better list. | ||
| + | The Truxton software uses [https://docs.microsoft.com/en-us/windows/win32/api/minwinbase/ns-minwinbase-filetime FILETIME] for all time calculations. | ||
| + | |||
| + | {| class="wikitable" | ||
| + | ! Epoch | ||
| + | ! Type | ||
| + | |- | ||
| + | | <code>01 Jan 1601</code> | ||
| + | | [[#Windows_FILETIME|Windows FILETIME]] | ||
| + | |- | ||
| + | | <code>30 Dec 1899</code> | ||
| + | | [[#Windows_COM|Windows COM]] | ||
| + | |- | ||
| + | | <code>01 Jan 1970</code> | ||
| + | | [[#Unix_Time|Unix Time]] | ||
| + | |- | ||
| + | | <code>01 Jan 2001</code> | ||
| + | | [[#Apple_Cocoa_Core|Apple]] | ||
| + | |} | ||
=Apple Cocoa Core= | =Apple Cocoa Core= | ||
| − | [https://www.epochconverter.com/coredata Cocoa Core] is the number of seconds (32-bit value) since Jan | + | [https://www.epochconverter.com/coredata Cocoa Core] is the number of seconds (32-bit value) since 01 Jan 2001. |
The 64-bit version is the number of nanoseconds since 01 Jan 2001. | The 64-bit version is the number of nanoseconds since 01 Jan 2001. | ||
| + | |||
| + | =Unix Time= | ||
| + | This is a 32-bit integer holding the number of seconds since 01 Jan 1970. | ||
| + | The 64-bit integer version holds the number of milliseconds since 01 Jan 1970. | ||
| + | |||
| + | =Windows COM= | ||
| + | Windows [Component_Object_Model COM] stores date time in a double (floating point) number representing the number of days since 30 Dec 1899. | ||
=Windows FILETIME= | =Windows FILETIME= | ||
A 64-bit integer containing the number of 100-nanosecond clock ticks since 01 Jan 1601. | A 64-bit integer containing the number of 100-nanosecond clock ticks since 01 Jan 1601. | ||
Revision as of 11:07, 8 June 2024
Here's some of the time formats that Truxton can handle. Wikipedia has a better list. The Truxton software uses FILETIME for all time calculations.
| Epoch | Type |
|---|---|
01 Jan 1601
|
Windows FILETIME |
30 Dec 1899
|
Windows COM |
01 Jan 1970
|
Unix Time |
01 Jan 2001
|
Apple |
Apple Cocoa Core
Cocoa Core is the number of seconds (32-bit value) since 01 Jan 2001. The 64-bit version is the number of nanoseconds since 01 Jan 2001.
Unix Time
This is a 32-bit integer holding the number of seconds since 01 Jan 1970. The 64-bit integer version holds the number of milliseconds since 01 Jan 1970.
Windows COM
Windows [Component_Object_Model COM] stores date time in a double (floating point) number representing the number of days since 30 Dec 1899.
Windows FILETIME
A 64-bit integer containing the number of 100-nanosecond clock ticks since 01 Jan 1601.