| Index: base/i18n/time_formatting.cc
|
| diff --git a/base/i18n/time_formatting.cc b/base/i18n/time_formatting.cc
|
| index fde255fa71e19d76a70fc570a0eb5c52c7b4cc8d..f4235952b41f053c6b420d335e6a4c331b30c720 100644
|
| --- a/base/i18n/time_formatting.cc
|
| +++ b/base/i18n/time_formatting.cc
|
| @@ -153,6 +153,11 @@ string16 TimeFormatFriendlyDate(const Time& time) {
|
| return TimeFormat(formatter.get(), time);
|
| }
|
|
|
| +string16 TimeFormatWithPattern(const Time& time, const char* pattern) {
|
| + icu::SimpleDateFormat formatter = CreateSimpleDateFormatter(pattern);
|
| + return TimeFormat(&formatter, time);
|
| +}
|
| +
|
| string16 TimeDurationFormat(const TimeDelta time,
|
| const DurationFormatWidth width) {
|
| UErrorCode status = U_ZERO_ERROR;
|
|
|