HPlogo MPE/iX Intrinsics Reference Manual > Chapter 4 Command Definitions (ABORTSESS - FCLOSE)

ALMANAC

MPE documents

Complete PDF
Table of Contents
Index

Edition 7 E0701 ♥
Edition 7 E0300
Edition 6 E0195

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       I16     I16
  ALMANAC (date, daterror, yearnum, monthnum, 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:7Years since 1900

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, DATELINE, FMTCALENDAR, FMTCLOCK, FMTDATE, NLINFO
Manuals Native Language Programmer's Guide




ADJUSTUSLF


ALTDSEG