ipc/chromium/src/base/time_format.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
michael@0 2 // Use of this source code is governed by a BSD-style license that can be
michael@0 3 // found in the LICENSE file.
michael@0 4
michael@0 5 // Basic time formatting methods. These methods use the current locale
michael@0 6 // formatting for displaying the time.
michael@0 7
michael@0 8 #ifndef BASE_TIME_FORMAT_H_
michael@0 9 #define BASE_TIME_FORMAT_H_
michael@0 10
michael@0 11 #include <string>
michael@0 12
michael@0 13 namespace base {
michael@0 14
michael@0 15 class Time;
michael@0 16
michael@0 17 // Returns the time of day, e.g., "3:07 PM".
michael@0 18 std::wstring TimeFormatTimeOfDay(const Time& time);
michael@0 19
michael@0 20 // Returns a shortened date, e.g. "Nov 7, 2007"
michael@0 21 std::wstring TimeFormatShortDate(const Time& time);
michael@0 22
michael@0 23 // Returns a numeric date such as 12/13/52.
michael@0 24 std::wstring TimeFormatShortDateNumeric(const Time& time);
michael@0 25
michael@0 26 // Formats a time in a friendly sentence format, e.g.
michael@0 27 // "Monday, March 6, 2008 2:44:30 PM".
michael@0 28 std::wstring TimeFormatShortDateAndTime(const Time& time);
michael@0 29
michael@0 30 // Formats a time in a friendly sentence format, e.g.
michael@0 31 // "Monday, March 6, 2008 2:44:30 PM".
michael@0 32 std::wstring TimeFormatFriendlyDateAndTime(const Time& time);
michael@0 33
michael@0 34 // Formats a time in a friendly sentence format, e.g.
michael@0 35 // "Monday, March 6, 2008".
michael@0 36 std::wstring TimeFormatFriendlyDate(const Time& time);
michael@0 37
michael@0 38 } // namespace base
michael@0 39
michael@0 40 #endif // BASE_TIME_FORMAT_H_

mercurial