Nana C++ Library  
An open-source C++ framework project
The Nana Programmer's Guide
nana::date

Description

A date operation class.

Model of

None 

Public base classes

None

Typedefs

struct value
{
    unsigned year;  //[1601 - 30827)
    unsigned month; //[1, 12]
    unsigned day;   //[1, 31]
};

Members

date() The default construction, the initialized date is today.
date(int year, int month, int day) The initializer for a specified day. 
int day_of_week() const Return the what day.
void value& read() const Get the current date.
static unsinged year_days(unsigned year) Returns the number of days in the specified year.
static unsigned month_days(unsigned year, unsinged month) Returns the number of days in the specified month.
static unsinged day_in_year(unsinged year, unsinged monty, unsinged day) Returns the index of the specified day in this year, at range[1, 365] or [1, 366]

File

nana/datetime.hpp

Notes

None.

See also

date_chooser.


Move to The Nana Programmer's Guide Main Page