Index: base/time/time.cc |
diff --git a/base/time/time.cc b/base/time/time.cc |
index 76ffeb744112d1909afa9b488bcfa277950225bb..8b1a6d783baf329679d4c091e7093fb8bc302d4e 100644 |
--- a/base/time/time.cc |
+++ b/base/time/time.cc |
@@ -263,6 +263,14 @@ bool Time::FromStringInternal(const char* time_string, |
return true; |
} |
+// static |
+bool Time::ExplodedMostlyEquals(const Exploded& lhs, const Exploded& rhs) { |
+ return lhs.year == rhs.year && lhs.month == rhs.month && |
+ lhs.day_of_month == rhs.day_of_month && lhs.hour == rhs.hour && |
+ lhs.minute == rhs.minute && lhs.second == rhs.second && |
+ lhs.millisecond == rhs.millisecond; |
+} |
+ |
std::ostream& operator<<(std::ostream& os, Time time) { |
Time::Exploded exploded; |
time.UTCExplode(&exploded); |