Extracted from Pike v8.0 release 28 as of 2015-08-03.
   

Method Sql.mysql()->encode_date()


Method encode_date

string encode_date(int time)

Description

Converts a system time value to an appropriately formatted date-only spec for the database.

Parameter time

Time to encode.