Chromium Code Reviews| Index: base/i18n/time_formatting.h |
| diff --git a/base/i18n/time_formatting.h b/base/i18n/time_formatting.h |
| index 0fb6529003724f93917b4fbd2cc6a9445a7f54b0..4884f67a5542d26f66eb2121893cf61db52bd534 100644 |
| --- a/base/i18n/time_formatting.h |
| +++ b/base/i18n/time_formatting.h |
| @@ -87,6 +87,14 @@ BASE_I18N_EXPORT string16 TimeFormatFriendlyDateAndTime(const Time& time); |
| // "Monday, March 6, 2008". |
| BASE_I18N_EXPORT string16 TimeFormatFriendlyDate(const Time& time); |
| +// Formats a time using a skeleton to produce a format for different locales |
| +// when unusual time format is needed, e.g., |
|
Mathieu
2017/01/27 15:01:44
*when an unusual
jiahuiguo
2017/02/03 07:11:17
Done.
|
| +// "Feb. 2, 18:00". |
|
Mathieu
2017/01/27 15:01:44
bring to previous line
jiahuiguo
2017/02/03 07:11:17
Done.
|
| +// |
| +// See http://userguide.icu-project.org/formatparse/datetime for details. |
| +BASE_I18N_EXPORT string16 TimeFormatWithPattern(const Time& time, |
| + const char* pattern); |
| + |
| // Formats a time duration of hours and minutes into various formats, e.g., |
| // "3:07" or "3 hours, 7 minutes". See DurationFormatWidth for details. |
| // |