Next Previous Contents

97. SLcurrent_time_string


Get the current time as a string


char *SLcurrent_time_string (void)


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


Next Previous Contents