timestr

Purpose

Formats a time in a vector to a string.

Format

ts = timestr(t)
Parameters:

t (scalar or vector) – 4x1 vector from the time function or a zero. If the input is 0, the time() function will be called to return the current system time.

Returns:

ts (8 character string) – containing current time in the format: hr:mn:sc

Examples

t = { 7, 31, 46, 33 };
ts = timestr(t);
print ts;
7:31:46

Source

time.src