Method Sql.Sql()->encode_time()
- Method encode_time
stringencode_time(intt,int|voidis_utc)- Description
Converts a system time value to an appropriately formatted time spec for the database.
- Parameter
t Time to encode.
- Parameter
is_utc If nonzero then time is taken as a "full" unix time spec (where the date part is ignored), otherwise it's converted as a seconds-since-midnight value.