摘要:
PHP 提供了函数可以方便的将各种形式的日期转换为时间戳,该类函数主要是: strtotime():将任何英文文本的日期时间描述解析为时间戳。 mktime():从日期取得时间戳。strtotime()strtotime() 函数用于将英文文本字符串表示的日期转换为时间戳,为 date() 的反函数,成功返回时间戳,否则返回 FALSE 。语法:1 int strtotime ( string time [, int now] )参数 time 为被解析的字符串,是根据 GNU 日期输入格式表示的日期。例子:1 "; //输出明天此时的时间戳5 ?>mktim... 阅读全文
posted @ 2013-10-18 17:19
以为是帅哥
阅读(2809)
评论(0)
推荐(0)
浙公网安备 33010602011771号