FMIceLinkNetworkTimeProtocol Class Reference

Inherits from NSObject
Declared in FMIceLinkNetworkTimeProtocol.h
FMIceLinkNetworkTimeProtocol.m

Overview

Utility class to assist with Network Time Protocol (NTP) conversions.

+ compactNtpToDateTimeWithNtp:

Converts a compact NTP timestamp (32 bits) to a date.
+ (NSDate *)compactNtpToDateTimeWithNtp:(long long)ntp

Parameters

ntp

The NTP timestamp to convert.

Return Value

The equivalent date.

Discussion

Converts a compact NTP timestamp (32 bits) to a date.

Declared In

FMIceLinkNetworkTimeProtocol.h

+ dateTimeToCompactNtpWithDateTime:

Converts a date to a compact NTP timestamp (32 bits).
+ (long long)dateTimeToCompactNtpWithDateTime:(NSDate *)dateTime

Parameters

dateTime

The date to convert.

Return Value

The equivalent NTP timestamp.

Discussion

Converts a date to a compact NTP timestamp (32 bits).

Declared In

FMIceLinkNetworkTimeProtocol.h

+ dateTimeToNtpSecondsWithDateTime:

Converts a date to an NTP timestamp (double).
+ (double)dateTimeToNtpSecondsWithDateTime:(NSDate *)dateTime

Parameters

dateTime

The date to convert.

Return Value

The equivalent NTP timestamp.

Discussion

Converts a date to an NTP timestamp (double).

Declared In

FMIceLinkNetworkTimeProtocol.h

+ dateTimeToNtpWithDateTime:

Converts a date to an NTP timestamp (64 bits).
+ (long long)dateTimeToNtpWithDateTime:(NSDate *)dateTime

Parameters

dateTime

The date to convert.

Return Value

The equivalent NTP timestamp.

Discussion

Converts a date to an NTP timestamp (64 bits).

Declared In

FMIceLinkNetworkTimeProtocol.h

+ ntpSecondsToDateTimeWithNtpSeconds:

Converts an NTP timestamp (double) to a date.
+ (NSDate *)ntpSecondsToDateTimeWithNtpSeconds:(double)ntpSeconds

Parameters

ntpSeconds

The NTP timestamp to convert.

Return Value

The equivalent date.

Discussion

Converts an NTP timestamp (double) to a date.

Declared In

FMIceLinkNetworkTimeProtocol.h

+ ntpToDateTimeWithNtp:

Converts an NTP timestamp (64 bits) to a date.
+ (NSDate *)ntpToDateTimeWithNtp:(long long)ntp

Parameters

ntp

The NTP timestamp to convert.

Return Value

The equivalent date.

Discussion

Converts an NTP timestamp (64 bits) to a date.

Declared In

FMIceLinkNetworkTimeProtocol.h

+ utcNow

Gets the current UTC time in NTP format.
+ (long long)utcNow

Discussion

Gets the current UTC time in NTP format.

Declared In

FMIceLinkNetworkTimeProtocol.h