php - 转换 iPhone 时间戳

标签 php ios iphone

我用 gps 和 wifi 数据提取了 iphone 数据库。
apple时间戳好像是一个特殊的时间戳(313167962.508283)。

如何将其转换为 Linux 时间戳或实际日期?
如果可能的话,我想用 PHP 转换它。

最佳答案

自 2001 年 1 月 1 日以来的时间以秒为单位。(引用:http://petewarden.github.com/iPhoneTracker/#2)

   $time = mktime('', '', '', 1, 1, 2001) + $appletime;

关于php - 转换 iPhone 时间戳,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5747370/

相关文章:

javascript - 来自动态添加的输入字段时未发送发布数据

ios - 验证我的设备是否能够以 HEIC 格式编码图像的正式方法是什么?

iphone - 使用 CorePlot 库绘制多个图形

iphone - 如何使用 Core Data 维护 UITableView 中的显示顺序?

php - 实时网络服务的更改和测试

php - Select from table where 子句 from array from another table

php - WAMP phpMyAdmin 打不开

ios - 根据索引更新 NSMutableArray

c# - 如何在 Xamarin iOS 中绘制文本?

iphone - 核心数据: endless loop while auto-migrating between two data models