11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

TIME<br />

Syntax<br />

TIME( )<br />

Description<br />

The <strong>UniBasic</strong> TIME function returns the time of day in internal format, expressed as<br />

the number of seconds elapsed since midnight.<br />

Note: The TIME function has no arguments.<br />

Examples<br />

In the following example, the program statement prints the time of day in internal<br />

format. If the time is 1:01 A.M., UniData prints the value 3660, the number of<br />

seconds since midnight in internal format.<br />

PRINT TIME()<br />

In the next example, the TIME function is used in conjunction with the OCONV<br />

function for conversion to external format:<br />

PRINT OCONV(TIME(),"MT")<br />

Related <strong>Commands</strong><br />

<strong>UniBasic</strong><br />

DATE, ICONV Date (D), OCONV Date (D), TIMEDATE<br />

TIME 1-872

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!