Pike v8.0 release 1738

Method Sql.mysql()->decode_time()


Method decode_time

int decode_time(string timestr, void|int 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.