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

FMTDATE

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

NM and CM callable.

Passes in the calendar date and time of day, in the same format as the CALENDAR and CLOCK intrinsics, and returns it in the following format:

   FRI, JAN 27, 1989, 12:39 AM

Syntax

           U16V I32V   CA

   FMTDATE(date,time,datetime);

Parameters

date

16-bit unsigned integer by value (required)

Passes the date in the same format as the CALENDAR intrinsic:

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

time

32-bit signed integer by value (required)

Passes the time in the same format as the CLOCK intrinsic:

BitsValue/Meaning
24:8Tenths of seconds
16:8Seconds
8:8Minute of hour
0:8Hour of day

datetime

character array (required)

Returns the formatted date and time in a 27-character array. If the day of the month is less than 10 or the time is one digit (before 10:00), a blank precedes it. For example,

   FRI, JAN  6, 1989, 7:39 AM

Operation Notes

If invalid input values are supplied, the output values returned are unpredictable; an error status is not returned.

Related Information

Intrinsics

None

Commands

None

Manuals

None

Feedback to webmaster