龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > php编程 >

gettimeofday php gettimeofday函数-返回当前时间存放在关联数组里

时间:2014-05-30 15:23来源:网络整理 作者:网络 点击:
分享到:
php gettimeofday函数-返回当前时间存放在关联数组里 KeyDescriptionsecSeconds since midnight before January 1, 1970usec Microseconds since the sec valueminuteswest Local time zone difference from GMT, in minutes dsttime 1 iff da

Key Description

sec Seconds since midnight before January 1, 1970

usec Microseconds since the sec value

minuteswest

Local time zone difference from GMT, in minutes

dsttime 1 iff daylight savings time is in effect,

0 iff not.;

<?php
$Now = gettimeofday();
echo "As an associative array:\n";
foreach ($Now as $Key => $Value) {
  echo "$Key => $Value\n";
}
?>

                                输出结果如下:
sec => 1261918156
usec => 724964
minuteswest => 0
dsttime => 0

收藏文章
表情删除后不可恢复,是否删除
取消
确定
图片正在上传,请稍后...
评论内容为空!
还没有评论,快来抢沙发吧!
按钮 内容不能为空!
立刻说两句吧! 查看0条评论
精彩图集

赞助商链接