HPlogo 900 Series HP 3000 Computer Systems: MPE/iX Intrinsics Reference Manual > Chapter 4 Command Definitions

ALMANAC

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

NM and CM callable.

Returns the numeric date information for a date returned by the CALENDAR intrinsic. The returned information is year of century, month of year, day of month, and day of week.

Syntax

        U16V  U16A      I16     I16

ALMANAC(date,daterror,yearnum,monthnum,

          I16     I16

           daynum,weekdaynum);

Parameters

date

16-bit unsigned integer by value (required)

Contains the date in the following format:

BitsValue/Meaning
7:9Day of year
0:7Year of century

daterror

16-bit unsigned integer array (required)

Returns two elements; the first element is the error number, the second element is reserved and always returns 0. The possible error numbers returned are:

ValueMeaning
0Successful
1No parameters available for returning values
2Day of year out of range
3Year of century out of range

yearnum

16-bit signed integer by reference (optional)

Returns the year of century. For example, 00=1900, 84=1984.

monthnum

16-bit signed integer by reference (optional)

Returns the month of year. For example, 1=January, 12=December.

daynum

16-bit signed integer by reference (optional)

Returns the day of month.

weekdaynum

16-bit signed integer by reference (optional)

Returns the day of week. For example, 1=Sunday, 7=Saturday.

Related Information

Intrinsics

CALENDAR, CLOCK, FMTCALENDAR, FMTCLOCK, FMTDATE

Commands

None

Manuals

Native Language Programmer's Guide (32650-90022)

Feedback to webmaster