当我打开系统时,我想在php中使用该时间(system time)或(SERVER time),bcz当用户打开系统时我想将该时间存储在登录表的logintime中,如何进行
date()函数就是您想要的。
$today = date("Y-m-d H:i:s");// 2001-03-10 17:16:18 (the MySQL DATETIME format)
当我打开系统时,我想在php中使用该时间(system time)或(SERVER time),bcz当用户打开系统时我想将该时间存储在登录表的logintime中,如何进行
date()函数就是您想要的。
$today = date("Y-m-d H:i:s");// 2001-03-10 17:16:18 (the MySQL DATETIME format)