media-stream-library
Version:
Media stream library for Node & the Web.
11 lines (10 loc) • 407 B
TypeScript
export type seconds = number;
export type milliSeconds = number;
export type NtpSeconds = number;
export type NtpMilliSeconds = number;
/**
* Convert NTP time to milliseconds since January 1, 1970, 00:00:00 UTC (Unix Epoch)
* @param ntpMost - Seconds since 01.01.1900
* @param ntpLeast - Fractions since 01.01.1900
*/
export declare function getTime(ntpMost: number, ntpLeast: number): NtpMilliSeconds;