Method __builtin.Sql.Connection()->decode_time()


Method decode_time

int decode_time(string timestr, int|void date)

Description

Converts a database time spec to a system time value.

Parameter timestr

Time spec to decode.

Parameter date

Take the date part from this system time value. If zero, a seconds-since-midnight value is returned.

Returns

Returns the number of seconds since midnight.