OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/time/time.h" | 5 #include "base/time/time.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <ostream> | 8 #include <ostream> |
9 | 9 |
10 #include "base/float_util.h" | 10 #include "base/float_util.h" |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/third_party/nspr/prtime.h" | 13 #include "base/third_party/nspr/prtime.h" |
14 #include "base/third_party/nspr/prtypes.h" | |
15 | 14 |
16 namespace base { | 15 namespace base { |
17 | 16 |
18 // TimeDelta ------------------------------------------------------------------ | 17 // TimeDelta ------------------------------------------------------------------ |
19 | 18 |
20 // static | 19 // static |
21 TimeDelta TimeDelta::Max() { | 20 TimeDelta TimeDelta::Max() { |
22 return TimeDelta(std::numeric_limits<int64>::max()); | 21 return TimeDelta(std::numeric_limits<int64>::max()); |
23 } | 22 } |
24 | 23 |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 return is_in_range(month, 1, 12) && | 263 return is_in_range(month, 1, 12) && |
265 is_in_range(day_of_week, 0, 6) && | 264 is_in_range(day_of_week, 0, 6) && |
266 is_in_range(day_of_month, 1, 31) && | 265 is_in_range(day_of_month, 1, 31) && |
267 is_in_range(hour, 0, 23) && | 266 is_in_range(hour, 0, 23) && |
268 is_in_range(minute, 0, 59) && | 267 is_in_range(minute, 0, 59) && |
269 is_in_range(second, 0, 60) && | 268 is_in_range(second, 0, 60) && |
270 is_in_range(millisecond, 0, 999); | 269 is_in_range(millisecond, 0, 999); |
271 } | 270 } |
272 | 271 |
273 } // namespace base | 272 } // namespace base |
OLD | NEW |