New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
greg_weekday.cpp in vendors/XIOS/current/extern/boost/src/date_time – NEMO

source: vendors/XIOS/current/extern/boost/src/date_time/greg_weekday.cpp @ 3408

Last change on this file since 3408 was 3408, checked in by rblod, 12 years ago

importing initial XIOS vendor drop

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
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
6 * $Date: 2008-02-27 15:00:24 -0500 (Wed, 27 Feb 2008) $
7 */
8
9
10
11#ifndef BOOST_DATE_TIME_SOURCE
12#define BOOST_DATE_TIME_SOURCE
13#endif
14#include <boost/date_time/gregorian/greg_weekday.hpp>
15
16#include "greg_names.hpp"
17
18namespace boost {
19namespace gregorian {
20 
21  //! Return a 3 digit english string of the day of week (eg: Sun)
22  const char*
23  greg_weekday::as_short_string() const 
24  {
25    return short_weekday_names[value_];
26  }
27  //! Return a point to a long english string representing day of week
28  const char*
29  greg_weekday::as_long_string()  const 
30  {
31    return long_weekday_names[value_];
32  }
33 
34#ifndef BOOST_NO_STD_WSTRING
35  //! Return a 3 digit english wchar_t string of the day of week (eg: Sun)
36  const wchar_t*
37  greg_weekday::as_short_wstring() const 
38  {
39    return w_short_weekday_names[value_];
40  }
41  //! Return a point to a long english wchar_t string representing day of week
42  const wchar_t*
43  greg_weekday::as_long_wstring()  const 
44  {
45    return w_long_weekday_names[value_];
46  }
47#endif // BOOST_NO_STD_WSTRING
48 
49} } //namespace gregorian
50
Note: See TracBrowser for help on using the repository browser.