API Documentation
Loading...
Searching...
No Matches
NtpTimestamp Struct Reference

#include <NtpTimestamp.h>

Public Member Functions

 NtpTimestamp ()
 
 NtpTimestamp (const Time &dateTime)
 
Time toTime () const
 

Public Attributes

quint32 fraction
 
quint32 seconds
 

Detailed Description

64-bit NTP timestamp.

Constructor & Destructor Documentation

◆ NtpTimestamp() [1/2]

NtpTimestamp ( )
inline

◆ NtpTimestamp() [2/2]

NtpTimestamp ( const Time & dateTime)
inline
Parameters
dateTimeThe Time to convert to NTP structure.

Member Function Documentation

◆ toTime()

Time toTime ( ) const
inline
Returns
Time object for the given NTP timestamp.

Member Data Documentation

◆ fraction

quint32 fraction

Fractional time part, in 1/0xFFFFFFFFs of a second.

◆ seconds

quint32 seconds

Number of seconds passed since Jan 1 1900, in big-endian format.


The documentation for this struct was generated from the following file: