package ntp
Import Path
github.com/pion/interceptor/internal/ntp (on go.dev)
Dependency Relation
imports one package, and imported by 2 packages
Involved Source Files
Package ntp provides conversion methods between time.Time and NTP timestamps
stored in uint64
Package-Level Functions (total 4)
ToNTP converts a time.Time oboject to an uint64 NTP timestamp.
ToNTP32 converts a time.Time object to a uint32 NTP timestamp.
ToTime converts a uint64 NTP timestamps to a time.Time object.
ToTime32 converts a uint32 NTP timestamp to a time.Time object, using the
highest 16 bit of the reference to recover the lost bits. The low 16 bits are
not recovered.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |