216
218
* @param Date to compare against.
218
bool operator==(const Date &rhs);
219
bool operator!=(const Date &rhs);
220
bool operator>(const Date &rhs);
221
bool operator>=(const Date &rhs);
222
bool operator<(const Date &rhs);
223
bool operator<=(const Date &rhs);
220
virtual bool operator==(const Date &rhs);
221
virtual bool operator!=(const Date &rhs);
222
virtual bool operator>(const Date &rhs);
223
virtual bool operator>=(const Date &rhs);
224
virtual bool operator<(const Date &rhs);
225
virtual bool operator<=(const Date &rhs);
226
228
* Comparison operator overloads to compare a Date against
229
231
* @param DateTime to compare against.
231
bool operator==(const DateTime &rhs);
232
bool operator!=(const DateTime &rhs);
233
bool operator>(const DateTime &rhs);
234
bool operator>=(const DateTime &rhs);
235
bool operator<(const DateTime &rhs);
236
bool operator<=(const DateTime &rhs);
233
virtual bool operator==(const DateTime &rhs);
234
virtual bool operator!=(const DateTime &rhs);
235
virtual bool operator>(const DateTime &rhs);
236
virtual bool operator>=(const DateTime &rhs);
237
virtual bool operator<(const DateTime &rhs);
238
virtual bool operator<=(const DateTime &rhs);
239
* Comparison operator overloads to compare a Date against
241
* Comparison operator overloads to compare this against
240
242
* a Timestamp value.
242
244
* @param Timestamp to compare against.
244
bool operator==(const Timestamp &rhs);
245
bool operator!=(const Timestamp &rhs);
246
bool operator>(const Timestamp &rhs);
247
bool operator>=(const Timestamp &rhs);
248
bool operator<(const Timestamp &rhs);
249
bool operator<=(const Timestamp &rhs);
246
virtual bool operator==(const Timestamp &rhs);
247
virtual bool operator!=(const Timestamp &rhs);
248
virtual bool operator>(const Timestamp &rhs);
249
virtual bool operator>=(const Timestamp &rhs);
250
virtual bool operator<(const Timestamp &rhs);
251
virtual bool operator<=(const Timestamp &rhs);
252
254
* Operator overload for adding/subtracting another Date
670
675
Timestamp() :DateTime() {}
678
* Comparison operator overloads to compare this against
681
* @param Timestamp to compare against.
683
bool operator==(const Date &rhs);
684
bool operator!=(const Date &rhs);
685
bool operator>(const Date &rhs);
686
bool operator>=(const Date &rhs);
687
bool operator<(const Date &rhs);
688
bool operator<=(const Date &rhs);
691
* Comparison operator overloads to compare this against
694
* @param DateTime to compare against.
696
bool operator==(const DateTime &rhs);
697
bool operator!=(const DateTime &rhs);
698
bool operator>(const DateTime &rhs);
699
bool operator>=(const DateTime &rhs);
700
bool operator<(const DateTime &rhs);
701
bool operator<=(const DateTime &rhs);
704
* Comparison operator overloads to compare this against
705
* another Timestamp value.
707
* @param Timestamp to compare against.
709
bool operator==(const Timestamp &rhs);
710
bool operator!=(const Timestamp &rhs);
711
bool operator>(const Timestamp &rhs);
712
bool operator>=(const Timestamp &rhs);
713
bool operator<(const Timestamp &rhs);
714
bool operator<=(const Timestamp &rhs);
672
716
bool is_valid_timestamp() const {return is_valid();}
673
717
/** Returns whether the temporal value is valid timestamp. */
674
718
virtual bool is_valid() const;
730
* Operator overload to an output stream for a Timestamp.
732
std::ostream& operator<<(std::ostream& os, const Timestamp& subject);
686
735
* Class representing temporal components in the UNIX epoch
687
736
* with an additional microsecond component.