PIP 5.5.3
Platform-Independent Primitives
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
PIDate Class Reference

Calendar date. More...

#include <pidatetime.h>

Public Member Functions

 PIDate (int year_=0, int month_=0, int day_=0)
 Construct PIDate from year, month and day.
 
PIString toString (const PIString &format="d.MM.yyyy") const
 Returns string representation.
 

Static Public Member Functions

static PIDate fromString (PIString string, PIString format="d.MM.yyyy")
 Returns PIDate from string representation.
 
static PIDate current ()
 Returns current date.
 

Public Attributes

int year
 Year.
 
int month
 Month, 1-12.
 
int day
 Day, 1-31.
 

Detailed Description

Calendar date.