| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Basic time formatting methods. These methods use the current locale | 5 // Basic time formatting methods. These methods use the current locale |
| 6 // formatting for displaying the time. | 6 // formatting for displaying the time. |
| 7 | 7 |
| 8 #ifndef BASE_I18N_TIME_FORMATTING_H_ | 8 #ifndef BASE_I18N_TIME_FORMATTING_H_ |
| 9 #define BASE_I18N_TIME_FORMATTING_H_ | 9 #define BASE_I18N_TIME_FORMATTING_H_ |
| 10 #pragma once | |
| 11 | 10 |
| 12 #include "base/i18n/base_i18n_export.h" | 11 #include "base/i18n/base_i18n_export.h" |
| 13 #include "base/string16.h" | 12 #include "base/string16.h" |
| 14 | 13 |
| 15 namespace base { | 14 namespace base { |
| 16 | 15 |
| 17 class Time; | 16 class Time; |
| 18 | 17 |
| 19 // Argument type used to specify the hour clock type. | 18 // Argument type used to specify the hour clock type. |
| 20 enum HourClockType { | 19 enum HourClockType { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 BASE_I18N_EXPORT string16 TimeFormatFriendlyDate(const Time& time); | 57 BASE_I18N_EXPORT string16 TimeFormatFriendlyDate(const Time& time); |
| 59 | 58 |
| 60 // Gets the hour clock type of the current locale. e.g. | 59 // Gets the hour clock type of the current locale. e.g. |
| 61 // k12HourClock (en-US). | 60 // k12HourClock (en-US). |
| 62 // k24HourClock (en-GB). | 61 // k24HourClock (en-GB). |
| 63 BASE_I18N_EXPORT HourClockType GetHourClockType(); | 62 BASE_I18N_EXPORT HourClockType GetHourClockType(); |
| 64 | 63 |
| 65 } // namespace base | 64 } // namespace base |
| 66 | 65 |
| 67 #endif // BASE_I18N_TIME_FORMATTING_H_ | 66 #endif // BASE_I18N_TIME_FORMATTING_H_ |
| OLD | NEW |