mysql_to_rfc3339()
最后更新于:2021-11-27 16:49:06
mysql_to_rfc3339( string$date_string)Parses and formats a MySQL datetime (Y-m-d H:i:s) for ISO8601 (Y-m-dTH:i:s).
参数
- $date_string
-
(string) (Required) Date string to parse and format.
响应
(string) Date formatted for ISO8601 without time zone.
源文件
文件: gc-includes/functions.php
function mysql_to_rfc3339( $date_string ) {
return mysql2date( 'Y-m-dTH:i:s', $date_string, false );
}