+
+bool
+LocalTime::operator== (LocalTime const & other) const
+{
+ return _year == other._year && _month == other._month && _day == other._day &&
+ _hour == other._hour && _second == other._second && _millisecond == other._millisecond &&
+ _tz_hour == other._tz_hour && _tz_minute == other._tz_minute;
+}
+
+bool
+LocalTime::operator< (LocalTime const & other) const
+{
+ if (_year != other._year) {
+ return _year < other._year;
+ }
+ if (_month != other._month) {
+ return _month < other._month;
+ }
+ if (_day != other._day) {
+ return _day < other._day;
+ }
+ if (_hour != other._hour) {
+ return _hour < other._hour;
+ }
+ if (_second != other._second) {
+ return _second < other._second;
+ }
+ return _millisecond < other._millisecond;
+}
+
+bool
+LocalTime::operator!= (LocalTime const & other) const
+{
+ return !(*this == other);
+}
+
+ostream&
+dcp::operator<< (ostream& s, LocalTime const & t)
+{
+ s << t.as_string ();
+ return s;
+}