Current Page:
NeXtMidas Training
Common Midas Concepts
Basic Features
Midas Time
|
|
- Midas Time:
- The standard time format for Midas frameworks is "Midas Time."
- Midas Time is defined in number of seconds since 00:00:00 on 1 January 1950 (UTC).
- Numeric Representation:
- Midas Time is commonly stored using one or two double-precision floats:
sec |
Number of seconds (whole+fractional) since 1 January 1950. |
wsec,fsec |
Whole seconds since 1 January 1950 (wsec ) and
fractional seconds since 1 January 1950 (fsec ). |
The second form (wsec,fsec) is used where a higher degree of precision is required.
- Most Midas frameworks provide methods that can convert Midas Time to other time
formats.
- Textural Representation:
- Most Midas frameworks support immediate conversion to and from a text-based
representation of time and date.
- The following are the commonly-supported formats:
Hours-Minutes-Seconds (HMS) |
hh:mm:ss.fff |
Standard-Time-Code (STD) |
yyyy:mm:dd::hh:mm:ss.fff |
In both cases the hours are 00 to 23 and the fractional seconds are optional.
Previously the year could omit the first two digits (e.g. "99" rather than "1999")
but this should be avoided to prevent confusion.
- Most Midas frameworks have some support for other text-based time representations
(e.g. VAX, NORAD, ACQ, etc.).
|
|
|