[Main page] [Overview]     /sefun /duration

SYNOPSIS
string duration( int int, status flag);

FILE
/kernel/simul_efun/strings.h

DESCRIPTION
Changes a number of seconds into a string. If flag is specified, it will
return a short form of the time, if not a longer form

EXAMPLES
time_string(3); returns "3 seconds"
time_string(546); returns "9 minutes and 6 seconds"
time_string(456456); returns "5 days, 6 hours, 47 minutes and 36 seconds"
time_string(546,1); returns "9min and 6s"

SEE ALSO
efun/ctime, efun/time