Time Data Types

STD.Date.Time_rec

STD.Date.Time_t

STD.DateTime_rec

STD.Timestamp_t

Time_recA RECORD structure containing three fields, and INTEGER1 hour, an UNSIGNED1 minute, and an UNSIGNED1 second.
Time_tAn UNSIGNED3 holding a time of day in the decimal form HHMMDD.
Seconds_tAn INTEGER8 holding holding a number of seconds. Can be used to represent either a duration or the number of seconds since epoch (Jan 1, 1970).
DateTime_recA RECORD structure containing both a Date_rec and a Time_rec
Timestamp_t An INTEGER8 holding a number of microseconds. Can be used to represent // either a duration or the number of microseconds since epoch (Jan 1, 1970).

The Time data types defined in the Date Standard Library are:

// A record structure with the different time elements separated out.
EXPORT Time_rec := RECORD
    UNSIGNED1   hour;
    UNSIGNED1   minute;
    UNSIGNED1   second;
END;

// An unsigned number holding a time of day in the decimal form HHMMDD.
EXPORT Time_t := UNSIGNED3;
// A signed number holding a number of seconds.  Can be used to represent either
// a duration or the number of seconds since epoch (Jan 1, 1970).
EXPORT Seconds_t := INTEGER8;


// A record structure with the different date and time elements separated out.
EXPORT DateTime_rec := RECORD
    Date_rec;
    Time_Rec;
END;

// A signed number holding a number of microseconds.  Can be used to represent
// either a duration or the number of microseconds since epoch (Jan 1, 1970).
EXPORT Timestamp_t := INTEGER8;

See Also: Date Data Types