unix2MJD
Contents: Description, Arguments, Usage, Examples, Sub-Functions, Related Functions, Source Supported Under Version: > 1.15
Description Convert Unix time to UTC Modified Julian Date
Arguments and Return Values Parameters: Numeric array specifying the Unix times (in seconds) to convert to UTC Modified Julian Dates Return Value: The corresponding set of UTC Modified Julian Dates
Usage Syntax: unix2MJD(unix) The Modified Julian Date is the number of days since midnight UTC at the beginning of November 17, 1858 (in the Gregorian calendar). Unix time is the number of seconds since midnight UTC at the beginning of January 1, 1970. Note that since neither of those time scales directly accounts for the addition of leap seconds, they are not truly continuous. The returned values are as accurate as the input. It is advisable to enter inputs in double format to ensure accuracy; see intermediate float bug. When unix2MJD() is entered without any arguments, it prints its description, as shown below.
Examples dv> unix2MJD() Converts input Unix time to UTC Modified Julian Date Unix time is the number of seconds since midnight UTC on January 1, 1970. Use seconds, not milliseconds! Note that Unix time does not account for leap seconds. Modified Julian Date is the number of days since midnight UTC on November 17, 1858 (in the Gregorian calendar). It is advisable to enter inputs in double format to ensure accuracy. See the DavinciWiki article on the intermediate float bug. S.Marshall 04-11-2009 0 dv> a = unix2MJD(0) 40587.0000000000 dv> MJD2date(a) Thursday, January 1, 1970, 00:00:00 UTC (Gregorian calendar) 7x1x1 array of int, bsq format [28 bytes] 1970 1 1 0 0 0 0 |
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Major Sub-Functions
Recent Library Changes Created On: 11-18-2009 |