php mktime()函数错误,错误提示:Strict Standards:mktime() [function.mktime]:It is not safe to rely on the system's timezone settings.Please use the date.timezone setting,the TZ environment variable or the date_default_timezone_set() function.

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 18:26:40
phpmktime()函数错误,错误提示:StrictStandards:mktime()[function.mktime]:Itisnotsafetorelyonthesystem''stimezon

php mktime()函数错误,错误提示:Strict Standards:mktime() [function.mktime]:It is not safe to rely on the system's timezone settings.Please use the date.timezone setting,the TZ environment variable or the date_default_timezone_set() function.
php mktime()函数错误,
错误提示:
Strict Standards:mktime() [function.mktime]:It is not safe to rely on the system's timezone settings.Please use the date.timezone setting,the TZ environment variable or the date_default_timezone_set() function.In case you used any of those methods and you are still getting this warning,you most likely misspelled the timezone identifier.We selected 'UTC' for '8.0/no DST' instead in F:\AppServ\www\phpweb\10\6\index.php on line 23
Strict Standards:mktime() [function.mktime]:You should be using the time() function instead in F:\AppServ\www\phpweb\10\6\index.php on line 23
mktime函数返回的时间戳:1314760412

php mktime()函数错误,错误提示:Strict Standards:mktime() [function.mktime]:It is not safe to rely on the system's timezone settings.Please use the date.timezone setting,the TZ environment variable or the date_default_timezone_set() function.

获取时间戳可以有两种方法