Date and Time Handling

Date Data Types

STD.Date.Date_rec

STD.Date.Date_t

STD.Date.Days_t

Date_recA RECORD structure containing three fields, and INTEGER2 year, an UNSIGNED1 month, and an UNSIGNED1 day.
Date_tAn UNSIGNED4 containing a date value in YYYYMMDD format.
Days_tAn UNSIGNED4 containing a date value representing the number of elapsed days since a particular base date. This number can be the number of days in the common era (January 1, 1AD = 1) based on either the Julian or Gregorian calendars, or the number of elapsed days since the Gregorian calendar's January 1, 1900 (January 1, 1900 = 1).

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

    // A record stucture with the different elements separated out.
EXPORT Date_rec := RECORD
  INTEGER2   year;
  UNSIGNED1  month;
  UNSIGNED1  day;
END;

    //An unsigned number holding a date in the decimal form YYYYMMDD.  
    //This type does not support dates prior to 1AD
EXPORT Date_t := UNSIGNED4;

    //A number of elapsed days.  Value depends on the function called.
EXPORT Days_t := UNSIGNED4;

See Also: Time Data Types