Next Previous Contents

8. Time and Date Functions

8.1 _time

Synopsis

Get the current time in seconds

Usage

ULong_Type _time ()

Description

The _time function returns the number of elapsed seconds since 00:00:00 GMT, January 1, 1970. The ctime function may be used to convert this into a string representation.

See Also

ctime, time

8.2 ctime

Synopsis

Convert a calendar time to a string

Usage

String_Type ctime(ULong_Type secs)

Description

This function returns a string representation of the time as given by secs seconds since 1970.

See Also

time

8.3 time

Synopsis

Return the current data and time as a string

Usage

String_Type time ()

Description

This function returns the current time as a string of the form:

    Sun Apr 21 13:34:17 1996
See Also

message, substr


Next Previous Contents