SourcePoint AMD Help

Table of Contents

ctime

Convert the output of the time command into a null-terminated ASCII string.

Syntax

[result =] ctime(expr)

Where:

result

specifies an nstring variable to which the function return value is assigned. If result is not specified, the return value is displayed on the next line of the screen.

expr

specifies a number or an expression.

Discussion

The ctime function converts the output of the time command into a null-terminated ASCII string. The input expression is a value (such as one returned by the time function). ย The output string has the form "day month date hh:mm:ss year.

Example

Command input:

define ord4 now = time()
ctime(now) ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย // answer will be current day and time

Result:

Wed Jun 07 16:26:07 2008 ย ย ย ย ย 

Related Topics: