2020-05-01 / 3319阅 / 悠然
Retrieves the current time based>
The ‘mysql’ type will return the time in the format for MySQL DATETIME field. The ‘timestamp’ type will return the current timestamp or a sum of timestamp and timezone offset, depending>
(string)
(Required)
Type of time to retrieve. Accepts 'mysql', 'timestamp', or PHP date format string (e.g. 'Y-m-d').
(int|bool)
(Optional)
Whether to use GMT timezone. Default false.
(int|string) Integer if $type is 'timestamp', string otherwise.