]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/date_time/src/gregorian/greg_weekday.cpp
1 /* Copyright (c) 2002-2004 CrystalClear Software, Inc.
2 * Use, modification and distribution is subject to the
3 * Boost Software License, Version 1.0. (See accompanying
4 * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
5 * Author: Jeff Garland, Bart Garst
11 #ifndef BOOST_DATE_TIME_SOURCE
12 #define BOOST_DATE_TIME_SOURCE
14 #include "boost/date_time/gregorian/greg_weekday.hpp"
16 #include "greg_names.hpp"
21 //! Return a 3 digit english string of the day of week (eg: Sun)
23 greg_weekday::as_short_string() const
25 return short_weekday_names
[value_
];
27 //! Return a point to a long english string representing day of week
29 greg_weekday::as_long_string() const
31 return long_weekday_names
[value_
];
34 #ifndef BOOST_NO_STD_WSTRING
35 //! Return a 3 digit english wchar_t string of the day of week (eg: Sun)
37 greg_weekday::as_short_wstring() const
39 return w_short_weekday_names
[value_
];
41 //! Return a point to a long english wchar_t string representing day of week
43 greg_weekday::as_long_wstring() const
45 return w_long_weekday_names
[value_
];
47 #endif // BOOST_NO_STD_WSTRING
49 } } //namespace gregorian