MPE/iX Intrinsics Reference Manual (32650-90905)

332 Chapter7
Command Definitions (HP32208-HPLOACNMPROC)
HPDATECONVERT
Operation Notes
The date intrinsics support dates in the range 0001-01-01 through
9999-12-31. They use the Gregorian calendar for all calculations, including
the rule for leap years (even though the Gregorian calendar was not in use
prior to year 1582). This calendar also ignores the fact that calendars in
Table 7-8. Supported Date Formats
Date
Type
Code
Storage
Type
#Bytes Explanation Sortable Y2K
Ready?
1 longint 8 MPE tune-stamp
(miroseconds since 1970-01-01)
yes yes
2 integer 4 Upper 2 bytes: year
next byte: month of year
bottom byte: day of month
yes yes
3 integer 4 Upper 2 bytes: year
bottom 2 bytes: day of year
yes yes
4 integer 4 Upper 23 bits: #years since 1900
bottom 9 bits: day of the year.
(analogous to the existing CALENDAR
format.)
yes yes
10 integer 4 Seconds since 1970-01-01
(POSIX.1 time() format; valid through
2038-01-18
yes yes
14 shortint 2 Upper 7 bits: #years snce 1900
Lower 9 bits: day of the year
(CALENDAR format; valid up to
2027-12-31)
yes yes
15 integer 4 YYMMDD date yes no
16 integer 4 MMDDYY date no no
17 integer 4 DDMMYY date no no
18 integer 4 YYYYMMDD date yes yes
25 ASCII 6 YYMMDD date yes no
26 ASCII 6 MMDDYY date no no
27 ASCII 6 DDMMYY date no no
35 ASCII 6
YYMMDD date YY:MM3000 date
1
yes yes
36 ASCII 6 MMDDYY date YY:MM3000 date no yes
37 ASCII 6 DDMMYY date YY:MM3000 date no yes
38 ASCII 8 YYYYMMDD date yes yes