PHP 中的最高日期精度是多少? [英] What is the highest date precision in PHP?

查看:27
本文介绍了PHP 中的最高日期精度是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PHP 有多种创建时间戳的方法.可用的最精确时间戳是多少?

PHP has a number of ways of creating a timestamp. What is the most precise timestamp available?

推荐答案

如果 精确 你的意思是尽可能小的时间增量,根据 PHP 手册,你可以得到 Unix 时间戳(以微秒为单位).只要您的操作系统支持 gettimeofday() 系统调用.

If by precise you mean the smallest time increment possible, according to the PHP manual, you can get Unix timestamps in microseconds. As long as your operating system supports the gettimeofday() system call.

microtime()

这篇关于PHP 中的最高日期精度是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆