pike.git / lib / modules / __builtin.pmod / Sql.pmod / Connection.pike

version» Context lines:

pike.git/lib/modules/__builtin.pmod/Sql.pmod/Connection.pike:145:    return mktime(sec, min, hour,    ct->mday, ct->mon, ct->year,    ct->isdst, ct->timezone);    }    else return (hour * 60 + min) * 60 + sec;   }      //! Converts a system time value to an appropriately formatted   //! date-only spec for the database.   //! - //! @param t + //! @param time   //! Time to encode.   //!   //! The default implementation returns an ISO 9601 date.   string encode_date(int time)   {    if (!time) return "0000-00-00";    mapping(string:int) ct = localtime (time);    return sprintf("%04d-%02d-%02d", ct->year + 1900, ct->mon + 1, ct->mday);   }