Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(356)

Side by Side Diff: base/i18n/time_formatting.h

Issue 16344006: Use a direct include of strings headers in base/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/i18n/string_search_unittest.cc ('k') | base/ios/device_util.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 10
11 #include "base/i18n/base_i18n_export.h" 11 #include "base/i18n/base_i18n_export.h"
12 #include "base/string16.h" 12 #include "base/strings/string16.h"
13 13
14 namespace base { 14 namespace base {
15 15
16 class Time; 16 class Time;
17 17
18 // Argument type used to specify the hour clock type. 18 // Argument type used to specify the hour clock type.
19 enum HourClockType { 19 enum HourClockType {
20 k12HourClock, // Uses 1-12. e.g., "3:07 PM" 20 k12HourClock, // Uses 1-12. e.g., "3:07 PM"
21 k24HourClock, // Uses 0-23. e.g., "15:07" 21 k24HourClock, // Uses 0-23. e.g., "15:07"
22 }; 22 };
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 BASE_I18N_EXPORT string16 TimeFormatFriendlyDate(const Time& time); 57 BASE_I18N_EXPORT string16 TimeFormatFriendlyDate(const Time& time);
58 58
59 // Gets the hour clock type of the current locale. e.g. 59 // Gets the hour clock type of the current locale. e.g.
60 // k12HourClock (en-US). 60 // k12HourClock (en-US).
61 // k24HourClock (en-GB). 61 // k24HourClock (en-GB).
62 BASE_I18N_EXPORT HourClockType GetHourClockType(); 62 BASE_I18N_EXPORT HourClockType GetHourClockType();
63 63
64 } // namespace base 64 } // namespace base
65 65
66 #endif // BASE_I18N_TIME_FORMATTING_H_ 66 #endif // BASE_I18N_TIME_FORMATTING_H_
OLDNEW
« no previous file with comments | « base/i18n/string_search_unittest.cc ('k') | base/ios/device_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698