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 seconds
 
quint32 fraction
 

Detailed Description

64-bit NTP timestamp.

Constructor & Destructor Documentation

◆ NtpTimestamp() [1/2]

NtpTimestamp ( )
inline
Parameters
dateTimeQt date time.
Returns
Ntp time for the given qt

◆ NtpTimestamp() [2/2]

NtpTimestamp ( const Time & dateTime)
inline

Member Function Documentation

◆ toTime()

Time toTime ( ) const
inline
Parameters
ntpTimeNTP timestamp.
Returns
Qt date time 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: