PCL
TimePoint.h
Go to the documentation of this file.
1 // ____ ______ __
2 // / __ \ / ____// /
3 // / /_/ // / / /
4 // / ____// /___ / /___ PixInsight Class Library
5 // /_/ \____//_____/ PCL 2.7.0
6 // ----------------------------------------------------------------------------
7 // pcl/TimePoint.h - Released 2024-06-18T15:48:54Z
8 // ----------------------------------------------------------------------------
9 // This file is part of the PixInsight Class Library (PCL).
10 // PCL is a multiplatform C++ framework for development of PixInsight modules.
11 //
12 // Copyright (c) 2003-2024 Pleiades Astrophoto S.L. All Rights Reserved.
13 //
14 // Redistribution and use in both source and binary forms, with or without
15 // modification, is permitted provided that the following conditions are met:
16 //
17 // 1. All redistributions of source code must retain the above copyright
18 // notice, this list of conditions and the following disclaimer.
19 //
20 // 2. All redistributions in binary form must reproduce the above copyright
21 // notice, this list of conditions and the following disclaimer in the
22 // documentation and/or other materials provided with the distribution.
23 //
24 // 3. Neither the names "PixInsight" and "Pleiades Astrophoto", nor the names
25 // of their contributors, may be used to endorse or promote products derived
26 // from this software without specific prior written permission. For written
27 // permission, please contact info@pixinsight.com.
28 //
29 // 4. All products derived from this software, in any form whatsoever, must
30 // reproduce the following acknowledgment in the end-user documentation
31 // and/or other materials provided with the product:
32 //
33 // "This product is based on software from the PixInsight project, developed
34 // by Pleiades Astrophoto and its contributors (https://pixinsight.com/)."
35 //
36 // Alternatively, if that is where third-party acknowledgments normally
37 // appear, this acknowledgment must be reproduced in the product itself.
38 //
39 // THIS SOFTWARE IS PROVIDED BY PLEIADES ASTROPHOTO AND ITS CONTRIBUTORS
40 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
41 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
42 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL PLEIADES ASTROPHOTO OR ITS
43 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
44 // EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, BUSINESS
45 // INTERRUPTION; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; AND LOSS OF USE,
46 // DATA OR PROFITS) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
47 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
48 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
49 // POSSIBILITY OF SUCH DAMAGE.
50 // ----------------------------------------------------------------------------
51 
52 #ifndef __PCL_TimePoint_h
53 #define __PCL_TimePoint_h
54 
56 
57 #include <pcl/Defs.h>
58 
59 #include <pcl/Math.h>
60 #include <pcl/String.h>
61 
62 /*
63  * N.B.: Remove potentially conflicting names that may be defined by 3rd-party
64  * packages used by some standard modules.
65  */
66 #ifdef J2000
67 # undef J2000
68 #endif
69 #ifdef J2100
70 # undef J2100
71 #endif
72 #ifdef B1950
73 # undef B1950
74 #endif
75 
76 namespace pcl
77 {
78 
79 // ----------------------------------------------------------------------------
80 
85 // ----------------------------------------------------------------------------
86 
87 struct FileTime;
88 
102 class PCL_CLASS TimePoint
103 {
104 public:
105 
110  TimePoint() = default;
111 
116  TimePoint( double jd )
117  : m_jdi( TruncInt( jd ) )
118  , m_jdf( Frac( jd ) )
119  {
120  }
121 
133  TimePoint( double jd1, double jd2 )
134  : m_jdi( TruncInt( jd1 ) + TruncInt( jd2 ) )
135  , m_jdf( Frac( jd1 ) + Frac( jd2 ) )
136  {
137  Normalize();
138  }
139 
143  TimePoint( int year, int month, double days )
144  {
145  CalendarTimeToJD( m_jdi, m_jdf, year, month, TruncInt( days ), Frac( days ) );
146  }
147 
152  TimePoint( int year, int month, int day, double dayFraction )
153  {
154  CalendarTimeToJD( m_jdi, m_jdf, year, month, day, dayFraction );
155  }
156 
160  TimePoint( int year, int month, int day, int hour, int minute, double seconds )
161  {
162  CalendarTimeToJD( m_jdi, m_jdf, year, month, day, (hour + (minute + seconds/60)/60)/24 );
163  }
164 
174  TimePoint( const IsoString& dateTime )
175  {
176  int year, month, day;
177  double dayf, tz;
178  dateTime.ParseISO8601DateTime( year, month, day, dayf, tz );
179  CalendarTimeToJD( m_jdi, m_jdf, year, month, day, dayf - tz/24 );
180  }
181 
191  TimePoint( const String& dateTime )
192  {
193  int year, month, day;
194  double dayf, tz;
195  dateTime.ParseISO8601DateTime( year, month, day, dayf, tz );
196  CalendarTimeToJD( m_jdi, m_jdf, year, month, day, dayf - tz/24 );
197  }
198 
203  TimePoint( time_t time );
204 
214  TimePoint( const FileTime& fileTime );
215 
219  TimePoint( const TimePoint& ) = default;
220 
224  TimePoint& operator =( const TimePoint& ) = default;
225 
231  constexpr bool IsValid() const
232  {
233  return ((m_jdi > 0) ? m_jdi : -m_jdi) < 2147438065;
234  }
235 
248  void GetCalendarTime( int& year, int& month, int& day ) const
249  {
250  double dum;
251  JDToCalendarTime( year, month, day, dum, m_jdi, m_jdf );
252  }
253 
270  void GetCalendarTime( int& year, int& month, int& day, double& dayf ) const
271  {
272  JDToCalendarTime( year, month, day, dayf, m_jdi, m_jdf );
273  }
274 
297  void GetCalendarTime( int& year, int& month, int& day, int& hour, int& minute, double& seconds ) const
298  {
299  double dayf;
300  JDToCalendarTime( year, month, day, dayf, m_jdi, m_jdf );
301  double h = Frac( dayf )*24;
302  double m = Frac( h )*60;
303  seconds = Frac( m )*60;
304  minute = TruncInt( m );
305  hour = TruncInt( h );
306  }
307 
311  int Year() const
312  {
313  int year, foo; double bar;
314  JDToCalendarTime( year, foo, foo, bar, m_jdi, m_jdf );
315  return year;
316  }
317 
321  int Month() const
322  {
323  int foo, month; double bar;
324  JDToCalendarTime( foo, month, foo, bar, m_jdi, m_jdf );
325  return month;
326  }
327 
331  int Day() const
332  {
333  int foo, day; double bar;
334  JDToCalendarTime( foo, foo, day, bar, m_jdi, m_jdf );
335  return day;
336  }
337 
341  double DayFraction() const
342  {
343  int foobar; double dayf;
344  JDToCalendarTime( foobar, foobar, foobar, dayf, m_jdi, m_jdf );
345  return dayf;
346  }
347 
362  String ToString( const ISO8601ConversionOptions& options = ISO8601ConversionOptions(), double tz = 0 ) const
363  {
364  return ToString( options, tz, (String*)0 );
365  }
366 
393  String ToString( unsigned timeItems, unsigned precision = 3, double tz = 0, bool timeZone = true, bool zuluTime = true ) const
394  {
395  return ToString( ISO8601ConversionOptions( timeItems, precision, timeZone, zuluTime ), tz );
396  }
397 
412  IsoString ToIsoString( const ISO8601ConversionOptions& options = ISO8601ConversionOptions(), double tz = 0 ) const
413  {
414  return ToString( options, tz, (IsoString*)0 );
415  }
416 
443  IsoString ToIsoString( unsigned timeItems, unsigned precision = 3, double tz = 0, bool timeZone = true, bool zuluTime = true ) const
444  {
445  return ToIsoString( ISO8601ConversionOptions( timeItems, precision, timeZone, zuluTime ), tz );
446  }
447 
518  String ToString( const String& format ) const;
519 
530  IsoString ToIsoString( const IsoString& format ) const;
531 
532  IsoString ToIsoString( const char* format ) const
533  {
534  return ToIsoString( IsoString( format ) );
535  }
536 
540  explicit operator String() const
541  {
542  return ToString();
543  }
544 
548  explicit operator IsoString() const
549  {
550  return ToIsoString();
551  }
552 
557  constexpr int JDI() const
558  {
559  return m_jdi;
560  }
561 
566  constexpr double JDF() const
567  {
568  return m_jdf;
569  }
570 
583  constexpr double JD() const
584  {
585  return m_jdi + m_jdf;
586  }
587 
594  constexpr double MJD() const
595  {
596  return (m_jdi-2400000) + (m_jdf-0.5);
597  }
598 
623  double DeltaT() const;
624 
633 
639  static void EnableDeltaTExtrapolation( bool enable = true );
640 
646  static void DisableDeltaTExtrapolation( bool disable = true )
647  {
648  EnableDeltaTExtrapolation( !disable );
649  }
650 
668  double DeltaAT() const;
669 
674  TimePoint& operator +=( double days )
675  {
676  m_jdf += days;
677  Normalize();
678  return *this;
679  }
680 
685  TimePoint& operator -=( double days )
686  {
687  m_jdf -= days;
688  Normalize();
689  return *this;
690  }
691 
696  constexpr double DaysSince( const TimePoint& t ) const
697  {
698  return m_jdi-t.m_jdi + m_jdf-t.m_jdf;
699  }
700 
705  constexpr double YearsSince( const TimePoint& t ) const
706  {
707  return DaysSince( t )/365.25;
708  }
709 
714  constexpr double CenturiesSince( const TimePoint& t ) const
715  {
716  return DaysSince( t )/36525;
717  }
718 
723  constexpr double SecondsSince( const TimePoint& t ) const
724  {
725  return DaysSince( t )*86400;
726  }
727 
732  constexpr double DaysSinceReferenceEpoch() const
733  {
734  return DaysSinceJ2000();
735  }
736 
742  constexpr double YearsSinceReferenceEpoch() const
743  {
744  return YearsSinceJ2000();
745  }
746 
752  constexpr double CenturiesSinceReferenceEpoch() const
753  {
754  return CenturiesSinceJ2000();
755  }
756 
761  constexpr double SecondsSinceReferenceEpoch() const
762  {
763  return SecondsSinceJ2000();
764  }
765 
770  constexpr double DaysSinceJ2000() const
771  {
772  return m_jdi-2451545 + m_jdf;
773  }
774 
779  constexpr double YearsSinceJ2000() const
780  {
781  return DaysSinceJ2000()/365.25;
782  }
783 
788  constexpr double CenturiesSinceJ2000() const
789  {
790  return DaysSinceJ2000()/36525;
791  }
792 
797  constexpr double SecondsSinceJ2000() const
798  {
799  return DaysSinceJ2000()*86400;
800  }
801 
806  constexpr double DaysSinceUNIXEpoch() const
807  {
808  return m_jdi-2440587 + m_jdf-0.5;
809  }
810 
815  constexpr double YearsSinceUNIXEpoch() const
816  {
817  return DaysSinceUNIXEpoch()/365.25;
818  }
819 
824  constexpr double CenturiesSinceUNIXEpoch() const
825  {
826  return DaysSinceUNIXEpoch()/36525;
827  }
828 
833  constexpr double SecondsSinceUNIXEpoch() const
834  {
835  return DaysSinceUNIXEpoch()*86400;
836  }
837 
842  constexpr double MillisecondsSinceUNIXEpoch() const
843  {
844  return DaysSinceUNIXEpoch()*86400000;
845  }
846 
853  double SystemOffsetFromUTC() const;
854 
860  {
861  return TimePoint( m_jdi, m_jdf + SystemOffsetFromUTC()/24 );
862  }
863 
869  {
870  return TimePoint( m_jdi, m_jdf - SystemOffsetFromUTC()/24 );
871  }
872 
877  static TimePoint Now();
878 
885  {
886  return J2000();
887  }
888 
893  static TimePoint J2000()
894  {
895  TimePoint t;
896  t.m_jdi = 2451545;
897  t.m_jdf = 0;
898  return t;
899  }
900 
905  static TimePoint J2100()
906  {
907  TimePoint t;
908  t.m_jdi = 2488070;
909  t.m_jdf = 0;
910  return t;
911  }
912 
917  static TimePoint B1950()
918  {
919  TimePoint t;
920  t.m_jdi = 2433282;
921  t.m_jdf = 0.42345905;
922  return t;
923  }
924 
930  {
931  TimePoint t;
932  t.m_jdi = 2440587;
933  t.m_jdf = 0.5;
934  return t;
935  }
936 
952  static TimePoint FromString( double& tz, const IsoString& dateTime )
953  {
954  int year, month, day;
955  double dayf;
956  dateTime.ParseISO8601DateTime( year, month, day, dayf, tz );
957  return TimePoint( year, month, day, dayf - tz/24 );
958  }
959 
975  static TimePoint FromString( double& tz, const String& dateTime )
976  {
977  int year, month, day;
978  double dayf;
979  dateTime.ParseISO8601DateTime( year, month, day, dayf, tz );
980  return TimePoint( year, month, day, dayf - tz/24 );
981  }
982 
995  static TimePoint FromString( const IsoString& dateTime )
996  {
997  return TimePoint( dateTime );
998  }
999 
1012  static TimePoint FromString( const String& dateTime )
1013  {
1014  return TimePoint( dateTime );
1015  }
1016 
1035  static bool TryFromString( TimePoint& t, double& tz, const IsoString& dateTime )
1036  {
1037  int year, month, day;
1038  double dayf;
1039  if ( dateTime.TryParseISO8601DateTime( year, month, day, dayf, tz ) )
1040  {
1041  t = TimePoint( year, month, day, dayf - tz/24 );
1042  return true;
1043  }
1044  return false;
1045  }
1046 
1065  static bool TryFromString( TimePoint& t, double& tz, const String& dateTime )
1066  {
1067  int year, month, day;
1068  double dayf;
1069  if ( dateTime.TryParseISO8601DateTime( year, month, day, dayf, tz ) )
1070  {
1071  t = TimePoint( year, month, day, dayf - tz/24 );
1072  return true;
1073  }
1074  return false;
1075  }
1076 
1094  static bool TryFromString( TimePoint& t, const IsoString& dateTime )
1095  {
1096  double tz;
1097  return TryFromString( t, tz, dateTime );
1098  }
1099 
1117  static bool TryFromString( TimePoint& t, const String& dateTime )
1118  {
1119  double tz;
1120  return TryFromString( t, tz, dateTime );
1121  }
1122 
1123 private:
1124 
1125  int32 m_jdi = int32_max; // invalid by default
1126  double m_jdf = 0.0;
1127 
1134  void Normalize()
1135  {
1136  m_jdi += TruncInt( m_jdf );
1137  m_jdf = Frac( m_jdf );
1138  if ( m_jdf != 0 )
1139  if ( m_jdf < 0 )
1140  {
1141  if ( m_jdi > 0 )
1142  {
1143  --m_jdi;
1144  m_jdf += 1;
1145  }
1146  }
1147  else if ( m_jdi < 0 )
1148  {
1149  ++m_jdi;
1150  m_jdf -= 1;
1151  }
1152  }
1153 
1154  template <class S>
1155  S ToString( const ISO8601ConversionOptions& options, double tz, S* ) const
1156  {
1157  if ( IsValid() )
1158  {
1159  int year, month, day;
1160  double dayf;
1161  JDToCalendarTime( year, month, day, dayf, m_jdi, m_jdf );
1162  return S::ToISO8601DateTime( year, month, day, dayf, tz, options );
1163  }
1164  return S();
1165  }
1166 };
1167 
1168 /*
1169  * ### N.B.: TimePoint cannot have virtual member functions.
1170  * This is because sizeof( TimePoint ) _must_ be equal to
1171  * sizeof( uint32 ) + sizeof( uint64 ).
1172  */
1173 struct PCL_AssertTimePointSize
1174 {
1175  struct TestData { uint32 x; uint64 y; };
1176  static_assert( sizeof( TimePoint ) == sizeof( TestData ), "Invalid sizeof( TimePoint )" );
1177 };
1178 
1184 inline constexpr bool operator ==( const TimePoint& t1, const TimePoint& t2 )
1185 {
1186  return t1.JDI() == t2.JDI() && t1.JDF() == t2.JDF();
1187 }
1188 
1194 inline constexpr bool operator ==( const TimePoint& t1, double jd2 )
1195 {
1196  return t1.JD() == jd2;
1197 }
1198 
1205 inline constexpr bool operator ==( double jd1, const TimePoint& t2 )
1206 {
1207  return t2.JD() == jd1;
1208 }
1209 
1220 inline constexpr bool operator <( const TimePoint& t1, const TimePoint& t2 )
1221 {
1222  return !t1.IsValid() || t2.IsValid() && ((t1.JDI() != t2.JDI()) ? t1.JDI() < t2.JDI() : t1.JDF() < t2.JDF());
1223 }
1224 
1234 inline constexpr bool operator <( const TimePoint& t1, double jd2 )
1235 {
1236  return !t1.IsValid() || t1.JD() < jd2;
1237 }
1238 
1248 inline constexpr bool operator <( double jd1, const TimePoint& t2 )
1249 {
1250  return t2.IsValid() && jd1 < t2.JD();
1251 }
1252 
1259 inline constexpr double operator -( const TimePoint& t1, const TimePoint& t2 )
1260 {
1261  return (t1.JDI() - t2.JDI()) + (t1.JDF() - t2.JDF());
1262 }
1263 
1269 inline TimePoint operator +( const TimePoint& t, double d )
1270 {
1271  return TimePoint( t.JDI(), t.JDF()+d );
1272 }
1273 
1280 inline TimePoint operator +( double d, const TimePoint& t )
1281 {
1282  return t + d;
1283 }
1284 
1291 inline TimePoint operator -( const TimePoint& t, double d )
1292 {
1293  return TimePoint( t.JDI(), t.JDF()-d );
1294 }
1295 
1296 // ----------------------------------------------------------------------------
1297 
1298 } // pcl
1299 
1300 #endif // __PCL_TimePoint_h
1301 
1302 // ----------------------------------------------------------------------------
1303 // EOF pcl/TimePoint.h - Released 2024-06-18T15:48:54Z
Eight-bit string (ISO/IEC-8859-1 or UTF-8 string)
Definition: String.h:5425
void ParseISO8601DateTime(int &year, int &month, int &day, double &dayf, double &tz) const
bool TryParseISO8601DateTime(int &year, int &month, int &day, double &dayf, double &tz) const noexcept
Unicode (UTF-16) string.
Definition: String.h:8113
void ParseISO8601DateTime(int &year, int &month, int &day, double &dayf, double &tz) const
bool TryParseISO8601DateTime(int &year, int &month, int &day, double &dayf, double &tz) const noexcept
An instant in any timescale.
Definition: TimePoint.h:103
static bool TryFromString(TimePoint &t, const IsoString &dateTime)
Definition: TimePoint.h:1094
constexpr double YearsSinceUNIXEpoch() const
Definition: TimePoint.h:815
static bool TryFromString(TimePoint &t, double &tz, const String &dateTime)
Definition: TimePoint.h:1065
constexpr double SecondsSince(const TimePoint &t) const
Definition: TimePoint.h:723
constexpr double CenturiesSinceReferenceEpoch() const
Definition: TimePoint.h:752
constexpr double DaysSinceUNIXEpoch() const
Definition: TimePoint.h:806
int Year() const
Definition: TimePoint.h:311
constexpr double CenturiesSinceJ2000() const
Definition: TimePoint.h:788
double DeltaT() const
double DayFraction() const
Definition: TimePoint.h:341
TimePoint UTCToLocalTime() const
Definition: TimePoint.h:859
static TimePoint FromString(const String &dateTime)
Definition: TimePoint.h:1012
static void EnableDeltaTExtrapolation(bool enable=true)
TimePoint LocalTimeToUTC() const
Definition: TimePoint.h:868
TimePoint(double jd1, double jd2)
Definition: TimePoint.h:133
static bool TryFromString(TimePoint &t, const String &dateTime)
Definition: TimePoint.h:1117
constexpr double JD() const
Definition: TimePoint.h:583
static TimePoint J2100()
Definition: TimePoint.h:905
static TimePoint Now()
constexpr double YearsSinceJ2000() const
Definition: TimePoint.h:779
constexpr double DaysSinceJ2000() const
Definition: TimePoint.h:770
constexpr double DaysSince(const TimePoint &t) const
Definition: TimePoint.h:696
void GetCalendarTime(int &year, int &month, int &day, int &hour, int &minute, double &seconds) const
Definition: TimePoint.h:297
TimePoint(const String &dateTime)
Definition: TimePoint.h:191
constexpr double YearsSince(const TimePoint &t) const
Definition: TimePoint.h:705
constexpr double SecondsSinceUNIXEpoch() const
Definition: TimePoint.h:833
constexpr double MJD() const
Definition: TimePoint.h:594
IsoString ToIsoString(const IsoString &format) const
constexpr double YearsSinceReferenceEpoch() const
Definition: TimePoint.h:742
String ToString(const ISO8601ConversionOptions &options=ISO8601ConversionOptions(), double tz=0) const
Definition: TimePoint.h:362
void GetCalendarTime(int &year, int &month, int &day) const
Definition: TimePoint.h:248
constexpr int JDI() const
Definition: TimePoint.h:557
IsoString ToIsoString(unsigned timeItems, unsigned precision=3, double tz=0, bool timeZone=true, bool zuluTime=true) const
Definition: TimePoint.h:443
static TimePoint UNIXEpoch()
Definition: TimePoint.h:929
IsoString ToIsoString(const ISO8601ConversionOptions &options=ISO8601ConversionOptions(), double tz=0) const
Definition: TimePoint.h:412
static TimePoint FromString(const IsoString &dateTime)
Definition: TimePoint.h:995
TimePoint()=default
TimePoint(time_t time)
constexpr double SecondsSinceReferenceEpoch() const
Definition: TimePoint.h:761
TimePoint(int year, int month, int day, double dayFraction)
Definition: TimePoint.h:152
String ToString(unsigned timeItems, unsigned precision=3, double tz=0, bool timeZone=true, bool zuluTime=true) const
Definition: TimePoint.h:393
TimePoint(const TimePoint &)=default
constexpr double SecondsSinceJ2000() const
Definition: TimePoint.h:797
double DeltaAT() const
TimePoint(const FileTime &fileTime)
constexpr double JDF() const
Definition: TimePoint.h:566
int Day() const
Definition: TimePoint.h:331
TimePoint(const IsoString &dateTime)
Definition: TimePoint.h:174
static void DisableDeltaTExtrapolation(bool disable=true)
Definition: TimePoint.h:646
double SystemOffsetFromUTC() const
TimePoint(int year, int month, double days)
Definition: TimePoint.h:143
int Month() const
Definition: TimePoint.h:321
TimePoint(int year, int month, int day, int hour, int minute, double seconds)
Definition: TimePoint.h:160
constexpr bool IsValid() const
Definition: TimePoint.h:231
static TimePoint ReferenceEpoch()
Definition: TimePoint.h:884
constexpr double CenturiesSinceUNIXEpoch() const
Definition: TimePoint.h:824
constexpr double CenturiesSince(const TimePoint &t) const
Definition: TimePoint.h:714
TimePoint(double jd)
Definition: TimePoint.h:116
static bool IsDeltaTExtrapolationEnabled()
static TimePoint J2000()
Definition: TimePoint.h:893
static TimePoint FromString(double &tz, const IsoString &dateTime)
Definition: TimePoint.h:952
constexpr double MillisecondsSinceUNIXEpoch() const
Definition: TimePoint.h:842
constexpr double DaysSinceReferenceEpoch() const
Definition: TimePoint.h:732
static bool TryFromString(TimePoint &t, double &tz, const IsoString &dateTime)
Definition: TimePoint.h:1035
static TimePoint B1950()
Definition: TimePoint.h:917
static TimePoint FromString(double &tz, const String &dateTime)
Definition: TimePoint.h:975
void GetCalendarTime(int &year, int &month, int &day, double &dayf) const
Definition: TimePoint.h:270
String ToString(const String &format) const
bool operator==(const Array< T, A > &x1, const Array< T, A > &x2) noexcept
Definition: Array.h:2267
bool operator<(const Array< T, A > &x1, const Array< T, A > &x2) noexcept
Definition: Array.h:2278
Complex< T1 > operator-(const Complex< T1 > &c1, const Complex< T2 > &c2) noexcept
Definition: Complex.h:504
Complex< T1 > operator+(const Complex< T1 > &c1, const Complex< T2 > &c2) noexcept
Definition: Complex.h:464
#define int32_max
Definition: Defs.h:866
void PCL_FUNC CalendarTimeToJD(int &jdi, double &jdf, int year, int month, int day, double dayf=0) noexcept
constexpr T Frac(T x) noexcept
Definition: Math.h:640
void PCL_FUNC JDToCalendarTime(int &year, int &month, int &day, double &dayf, int jdi, double jdf) noexcept
int TruncInt(T x) noexcept
Definition: Math.h:1132
unsigned long long uint64
Definition: Defs.h:682
signed int int32
Definition: Defs.h:660
unsigned int uint32
Definition: Defs.h:666
PCL root namespace.
Definition: AbstractImage.h:77
File date and time.
Definition: FileInfo.h:172
Formatting options for string representations of dates and times in ISO 8601 format.
Definition: String.h:399