Previous Next        Current Page: NeXtMidas Training / Common Midas Concepts / Basic Features / Midas Time
Start Here   
Background   
Common Midas Concepts   
   + Version Numbering   
   - Basic Features   
      - Shell   
      - Results   
      - AUX   
      - Option Trees   
      - Command Types   
      - Data Pipes   
      - Messaging   
      - Midas Time   
   + Data Types   
   + Blue Files   
   + Lab 1   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
Macros - Part 2 (Graphics)   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
Applets & WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • 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.).