summaryrefslogtreecommitdiffstats
path: root/chrome/common/time_format.h
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-19 22:35:29 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-19 22:35:29 +0000
commit5cca3a55b3f1c25c5b3a19c3b42227aae34e4abf (patch)
tree01cd3db90399f7c24d3aea3593fd2d5feb35f106 /chrome/common/time_format.h
parentaac13f594195df51eb1e4e35ea2863659cb4de54 (diff)
downloadchromium_src-5cca3a55b3f1c25c5b3a19c3b42227aae34e4abf.zip
chromium_src-5cca3a55b3f1c25c5b3a19c3b42227aae34e4abf.tar.gz
chromium_src-5cca3a55b3f1c25c5b3a19c3b42227aae34e4abf.tar.bz2
Move time formatters that only use ICU into base/time.*
This allows us to use the time formatters in, e.g., net or webkit. Remove CookieExpires since it's not used. BUG=1164516 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1063 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/time_format.h')
-rw-r--r--chrome/common/time_format.h27
1 files changed, 2 insertions, 25 deletions
diff --git a/chrome/common/time_format.h b/chrome/common/time_format.h
index d51f844..61e1d68 100644
--- a/chrome/common/time_format.h
+++ b/chrome/common/time_format.h
@@ -63,31 +63,8 @@ class TimeFormat {
// If NULL, the current day's midnight will be retrieved, which can be
// slow. If many items are being processed, it is best to get the current
// time once at the beginning and pass it for each computation.
- static std::wstring FriendlyDay(const Time& time,
- const Time* optional_midnight_today);
-
- // Returns the time of day, e.g., "3:07 PM".
- static std::wstring TimeOfDay(const Time& time);
-
- // Returns a shortened date, e.g. "Nov 7, 2007"
- static std::wstring ShortDate(const Time& time);
-
- // Returns a numeric date such as 12/13/52.
- static std::wstring ShortDateNumeric(const Time& time);
-
- // Formats a time in a friendly sentence format, e.g.
- // "Monday, March 6, 2008 2:44:30 PM".
- static std::wstring FriendlyDateAndTime(const Time& time);
-
- // Formats a time in a friendly sentence format, e.g.
- // "Monday, March 6, 2008".
- static std::wstring FriendlyDate(const Time& time);
-
- // Returns a time format used in a cookie expires attribute, e.g.
- // "Wed, 25-Apr-2007 21:02:13 GMT"
- // Its only legal time zone is GMT, and it can be parsed by
- // CookieMonster::ParseCookieTime().
- static std::wstring CookieExpires(const Time& time);
+ static std::wstring RelativeDate(const Time& time,
+ const Time* optional_midnight_today);
};
#endif // CHROME_COMMON_TIME_FORMAT_H__