Index: chrome/browser/chromeos/gdata/gdata_util.h |
diff --git a/chrome/browser/chromeos/gdata/gdata_util.h b/chrome/browser/chromeos/gdata/gdata_util.h |
index 05078a8f5b65ae5a54deede0751951b0e6c914ce..6c9d1943eb2fb992ad3d74efa72893df90d7bc7b 100644 |
--- a/chrome/browser/chromeos/gdata/gdata_util.h |
+++ b/chrome/browser/chromeos/gdata/gdata_util.h |
@@ -11,6 +11,7 @@ |
#include "base/bind.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/platform_file.h" |
+#include "base/time.h" |
#include "chrome/browser/chromeos/gdata/gdata_errorcode.h" |
#include "googleurl/src/gurl.h" |
@@ -101,11 +102,14 @@ bool IsDriveV2ApiEnabled(); |
// Returns a PlatformFileError that corresponds to the GDataFileError provided. |
base::PlatformFileError GDataFileErrorToPlatformError(GDataFileError error); |
-// Returns true when time string is successfully parsed and output as |time|. |
-// The time string must be in format yyyy-mm-ddThh:mm:ss.dddTZ (TZ is either |
-// '+hh:mm', '-hh:mm', 'Z' (representing UTC) or empty string). |
+// Parses an RFC 3339 date/time into a base::Time, returning true on success. |
+// The time string must be in the format "yyyy-mm-ddThh:mm:ss.dddTZ" (TZ is |
+// either '+hh:mm', '-hh:mm', 'Z' (representing UTC), or an empty string). |
bool GetTimeFromString(const base::StringPiece& raw_value, base::Time* time); |
+// Formats a base::Time as an RFC 3339 date/time (in UTC). |
+std::string FormatTimeAsString(const base::Time& time); |
+ |
} // namespace util |
} // namespace gdata |