ipc/chromium/src/base/time_format.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ipc/chromium/src/base/time_format.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,40 @@
     1.4 +// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
     1.5 +// Use of this source code is governed by a BSD-style license that can be
     1.6 +// found in the LICENSE file.
     1.7 +
     1.8 +// Basic time formatting methods.  These methods use the current locale
     1.9 +// formatting for displaying the time.
    1.10 +
    1.11 +#ifndef BASE_TIME_FORMAT_H_
    1.12 +#define BASE_TIME_FORMAT_H_
    1.13 +
    1.14 +#include <string>
    1.15 +
    1.16 +namespace base {
    1.17 +
    1.18 +class Time;
    1.19 +
    1.20 +// Returns the time of day, e.g., "3:07 PM".
    1.21 +std::wstring TimeFormatTimeOfDay(const Time& time);
    1.22 +
    1.23 +// Returns a shortened date, e.g. "Nov 7, 2007"
    1.24 +std::wstring TimeFormatShortDate(const Time& time);
    1.25 +
    1.26 +// Returns a numeric date such as 12/13/52.
    1.27 +std::wstring TimeFormatShortDateNumeric(const Time& time);
    1.28 +
    1.29 +// Formats a time in a friendly sentence format, e.g.
    1.30 +// "Monday, March 6, 2008 2:44:30 PM".
    1.31 +std::wstring TimeFormatShortDateAndTime(const Time& time);
    1.32 +
    1.33 +// Formats a time in a friendly sentence format, e.g.
    1.34 +// "Monday, March 6, 2008 2:44:30 PM".
    1.35 +std::wstring TimeFormatFriendlyDateAndTime(const Time& time);
    1.36 +
    1.37 +// Formats a time in a friendly sentence format, e.g.
    1.38 +// "Monday, March 6, 2008".
    1.39 +std::wstring TimeFormatFriendlyDate(const Time& time);
    1.40 +
    1.41 +}  // namespace base
    1.42 +
    1.43 +#endif  // BASE_TIME_FORMAT_H_

mercurial