time.sqltime

Description

Returns a string representation of timestamp in the format 'HH:MM:SS'. If timestamp is not defined, the function will use the current local system time.

Syntax

string = sqltime([number timestamp])

ParameterDescription
timestamp The number of seconds since January 1, 1970 UTC (commonly called a UNIX timestamp).

Return Value

Returns a formatted time string in the format 'HH:MM:SS'.

Remarks

No remarks.

Examples

print(sqltime());

The above example will output something similar to: "16:30:45"

print(sqldate(0)+" "+sqltime(0));

The above example will output something similar to (note the adjustment for local time): "1969-12-31 19:00:00"

See Also

time.sqldate()