Extracted from Pike v7.4 release 117 at 2004-07-26.
pike.ida.liu.se
[Top]
predef::
Sql
Sql.Sql

Method Sql.Sql()->encode_time()


Method encode_time

string encode_time(int t, int|void is_utc)

Description

Converts a system time value to an appropriately formatted time spec for the database. t Time to encode. 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.