gregorian::gregorian_calendar
Overall Index --
Gregorian Index --
Posix Time Index
Date Documentation
Header --
Functions
The class boost::gregorian::gregorian_calendar implements the functions
necessary to create the gregorian date system. It converts to
the year-month-day form of a date to a day number representation
and back.
boost::gregorian::gregorian_calendar クラスは、グレゴリオ暦の日付システムを生成するのに必要な機能を実装する。
これは、年-月-日 形式の日付と日付番号表現との相互変換を行う。
For most purposes this class is simply accessed by
gregorian::date and is not used directly
by the user. However, there are useful functions that
might be of use such as the
end_of_month_day
function.
このクラスは、主に
gregorian::date によってアクセスされることを意図しており、ユーザによって直接使用される事はない。
しかしながら、
end_of_month_day機能に役に立つ、有用な機能がある。
サンプル print month で、この例を説明している。
#include "boost/date_time/gregorian/gregorian.hpp" //include all types plus i/o
or
#include "boost/date_time/gregorian/gregorian_types.hpp" //no i/o just types
Syntax | Description | Example |
static short day_of_week(ymd_type) |
曜日を返す (0==Sunday, 1==Monday, etc) |
参照: gregorian::date day_of_week |
static date_int_type day_number(ymd_type) |
ymd_type を日付番号に変換する。日付番号は、エポック(Epoch)からの通算日数の絶対値である |
|
static short end_of_month_day(year_type, month_type) |
与えられた年と月から、その月の最終日を決定する |
|
static ymd_type from_day_number(date_int_type) |
日付番号を ymd 構造体に変換する |
|
static bool is_leap_year(year_type) |
指定した年がうるう年なら true を返す |
gregorian_calendar::is_leap_year(2000) --> true |
Last modified: Thu Sep 5 06:05:54 MST 2002
by Jeff Garland © 2000-2002
Japanese Translation Copyright (C) 2003 Shoji Shinohara.