SourcePoint AMD Help

Table of Contents

_strtime

Copy the current system time to an nstring variable.

Syntax

[result = ] _strtime(string)

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.

string

is an nstring variable.

Discussion

The _strtime function copies the current system time into an nstring variable. ย The time is formatted as hh:mm:ss. ย The return value can also be assigned to an nstring variable, or displayed on the command line.

Example 1

Command Input:

define nstring buffer

_strtime(buffer)

buffer

Result:

08:37:35

Example 2

Command Input:

define nstring buffer

define nstring strAnswer = _strtime(buffer)

strAnswer

Result:

08:37:36

Related Topics