| 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 "chrome/browser/google_apis/time_util.h" | 5 #include "google_apis/drive/time_util.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
| 12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 | 14 |
| 15 namespace google_apis { | 15 namespace google_apis { |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 base::Time::Exploded exploded; | 161 base::Time::Exploded exploded; |
| 162 time.LocalExplode(&exploded); | 162 time.LocalExplode(&exploded); |
| 163 return base::StringPrintf( | 163 return base::StringPrintf( |
| 164 "%04d-%02d-%02dT%02d:%02d:%02d.%03d", | 164 "%04d-%02d-%02dT%02d:%02d:%02d.%03d", |
| 165 exploded.year, exploded.month, exploded.day_of_month, | 165 exploded.year, exploded.month, exploded.day_of_month, |
| 166 exploded.hour, exploded.minute, exploded.second, exploded.millisecond); | 166 exploded.hour, exploded.minute, exploded.second, exploded.millisecond); |
| 167 } | 167 } |
| 168 | 168 |
| 169 } // namespace util | 169 } // namespace util |
| 170 } // namespace google_apis | 170 } // namespace google_apis |
| OLD | NEW |