quasarstream/ntp
最新稳定版本:v1.0.0
Composer 安装命令:
composer require quasarstream/ntp
包简介
The NetworkTimeProtocol class provides utility methods for working with NTP (Network Time Protocol) timestamps in PHP.
关键字:
README 文档
README
The NetworkTimeProtocol class provides utility methods for working with NTP (Network Time Protocol) timestamps in PHP. It is part of the PHP WebRTC package and supports conversion between NTP timestamps and PHP DateTimeImmutable objects. Internally, it uses GMP to handle 64-bit fixed-point representations of time.
Features
-
Convert current time to NTP timestamp (64-bit fixed-point)
-
Convert NTP timestamp to DateTimeImmutable
-
Accurate fractional second handling
-
Uses GMP for high-precision arithmetic
-
Fully UTC-compliant
Requirements
- PHP ≥ 8.4
Documentation
This package is part of the PHP WebRTC library. For complete documentation, examples, and API reference, visit:
Credits
Authors
-
Amin Yazdanpanah
- Website: aminyazdanpanah.com
- Email: github@aminyazdanpanah.com
-
Sana Moniri
- GtiHub: sanamoniri
Reporting Issues
Found a bug? Please report it on our issues.
License
BSD 3-Clause License. See LICENSE for details.
统计信息
- 总下载量: 630
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2025-05-13