Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_date.h
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_date.h
r8127 r9383 23 23 A double is interpreted as the number of milliseconds since 24 24 1970-01-01T00:00:00 Universal Coordinated Time - also known 25 as "The Epoch". 25 as "The Epoch". 26 26 27 While the range of the Julian day in Qt4 is limited to [0, MAX_INT], 28 Qt5 stores it as qint64 offering a huge range of valid dates. 29 As the significance of a double is below this ( assuming a 30 fraction of 52 bits ) the translation is not 31 bijective with rounding errors for dates very far from Epoch. 32 For a resolution of 1 ms those start to happen for dates above the 33 year 144683. 27 While the range of the Julian day in Qt4 is limited to [0, MAX_INT], 28 Qt5 stores it as qint64 offering a huge range of valid dates. 29 As the significance of a double is below this ( assuming a 30 fraction of 52 bits ) the translation is not 31 bijective with rounding errors for dates very far from Epoch. 32 For a resolution of 1 ms those start to happen for dates above the 33 year 144683. 34 34 35 35 An axis for a date/time interval is expected to be aligned … … 43 43 { 44 44 public: 45 /*! 45 /*! 46 46 How to identify the first week of year differs between 47 countries. 47 countries. 48 48 */ 49 49 enum Week0Type … … 60 60 /*! 61 61 "The week with January 1.1 in it." 62 62 63 63 In the U.S. this definition is more common than 64 64 FirstThursday. … … 67 67 }; 68 68 69 /*! 69 /*! 70 70 Classification of an time interval 71 71 … … 109 109 static QDate maxDate(); 110 110 111 static QDateTime toDateTime( double value, 111 static QDateTime toDateTime( double value, 112 112 Qt::TimeSpec = Qt::UTC ); 113 113 … … 122 122 static int utcOffset( const QDateTime & ); 123 123 124 static QString toString( const QDateTime &, 124 static QString toString( const QDateTime &, 125 125 const QString & format, Week0Type ); 126 126 };
Note:
See TracChangeset
for help on using the changeset viewer.