Index: base/i18n/time_formatting.cc |
diff --git a/base/i18n/time_formatting.cc b/base/i18n/time_formatting.cc |
index 024b86510b5a8260565dbd02eaaa376949de22a3..7e84dcc28bfc3fa4575a82fe34d42a8b2560edfd 100644 |
--- a/base/i18n/time_formatting.cc |
+++ b/base/i18n/time_formatting.cc |
@@ -141,6 +141,17 @@ string16 TimeFormatShortDateAndTimeWithTimeZone(const Time& time) { |
return TimeFormat(formatter.get(), time); |
} |
+string16 TimeFormatMonthAndYear(const Time& time) { |
+ icu::SimpleDateFormat formatter = CreateSimpleDateFormatter(UDAT_YEAR_MONTH); |
+ return TimeFormat(&formatter, time); |
+} |
+ |
+string16 TimeFormatWeekdayMonthAndDay(const Time& time) { |
+ icu::SimpleDateFormat formatter = |
+ CreateSimpleDateFormatter(UDAT_MONTH_WEEKDAY_DAY); |
+ return TimeFormat(&formatter, time); |
+} |
+ |
string16 TimeFormatFriendlyDateAndTime(const Time& time) { |
std::unique_ptr<icu::DateFormat> formatter( |
icu::DateFormat::createDateTimeInstance(icu::DateFormat::kFull)); |