HPlogo MPE/iX Intrinsics Reference Manual > Chapter 6 Command Definitions (FLUSHLOG-GETUSERMODE)

FMTCLOCK

MPE documents

Complete PDF
Table of Contents
Index

Edition 7 E0701
Edition 7 E0300 ♥
Edition 6 E0195

NM and CM callable.

Passes the time of day, in the same format as the CLOCK intrinsic, and returns it in the following format:

  12:39 AM

Syntax



            I32V  CA
  FMTCLOCK (time, formattime);

Parameters


time

32-bit signed integer by value (required)

Returns the time of day in the same format as the CLOCK intrinsic:

Bits

Value/Meaning

24:8

Tenths of seconds

16:8

Seconds

8:8

Minute of hour

0:8

Hour of day

formattime

character array (required)

Returns the formatted time of day in an 8-character array. If the hour is a single digit (prior to 10:00), the array contains a leading blank as follows:


  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


None




FMTCALENDAR


FMTDATE