Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: base/time.cc

Issue 3119022: Header cleanup in base.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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.h" 5 #include "base/time.h"
6 #include "base/string_util.h"
7 #include "base/sys_string_conversions.h" 6 #include "base/sys_string_conversions.h"
8 #include "base/third_party/nspr/prtime.h" 7 #include "base/third_party/nspr/prtime.h"
9 8
10 #include "base/logging.h" 9 #include "base/logging.h"
11 10
12 namespace base { 11 namespace base {
13 12
14 // TimeDelta ------------------------------------------------------------------ 13 // TimeDelta ------------------------------------------------------------------
15 14
16 int TimeDelta::InDays() const { 15 int TimeDelta::InDays() const {
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 return is_in_range(month, 1, 12) && 114 return is_in_range(month, 1, 12) &&
116 is_in_range(day_of_week, 0, 6) && 115 is_in_range(day_of_week, 0, 6) &&
117 is_in_range(day_of_month, 1, 31) && 116 is_in_range(day_of_month, 1, 31) &&
118 is_in_range(hour, 0, 23) && 117 is_in_range(hour, 0, 23) &&
119 is_in_range(minute, 0, 59) && 118 is_in_range(minute, 0, 59) &&
120 is_in_range(second, 0, 60) && 119 is_in_range(second, 0, 60) &&
121 is_in_range(millisecond, 0, 999); 120 is_in_range(millisecond, 0, 999);
122 } 121 }
123 122
124 } // namespace base 123 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698