Next Previous Contents

97. SLcurrent_time_string

Synopsis

Get the current time as a string

Usage

char *SLcurrent_time_string (void)

Description

The SLcurrent_time_string function uses the C library function call ctime to obtain a string representation of the the current date and time in the form

     "Wed Dec 10 12:50:28 1997"
However, unlike the ctime function, a newline character is not present in the string.

The returned value points to a statically allocated memory block which may get overwritten on subsequent function calls.

See Also

SLmake_string


Next Previous Contents