Overview
Examples
Screenshots
Comparisons
Applications
Download
Manual
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Language
English











SourceForge.net Logo



Date

 

struct Date : public RelOpsDate, Moveable<Date> > 

A simple date object with up to a day precision.

 

 

Constructor detail

 

Date()

Default constructor.

 


 

Date(const Nuller&)

Construct an empty date.

 


 

Date(int y, int m, int d)

Constructs a date based on y m d.

 

 

Public Member List

 

byte day

Day.

 


 

byte month

Month.

 


 

int16 year

Year.

 


 

void Serialize(Stream& s)

Serializes Date to/from s.

 


 

bool IsValid() const

Returns true if the date is valid.

 


 

void Set(int scalar)

Assign a date that is stored in the numeric scalar.

 


 

int Get() const

Converts the time into a numeric value.

 


 

int Compare(Date bconst

Compares Date with b, returns -1 if <b, 0 if == b, 1 if > b.

 


 

Date& operator++()

Moves to the next day.

 


 

Date& operator--()

Moves to the previous day.

 


 

static Date Low()

Returns the lowest possible date (year 4000).

 


 

static Date High()

Returns the highest possible date (year 4000).

 

 

 

 

Time

 

struct Time : public Date, public RelOpsTime, Moveable<Time> > 

A simple date time object with up to a second precision.

 

 

Constructor detail

 

Time()

Default constructor.

 


 

Time(const Nuller&)

Construcs an empty time.

 


 

Time(int y, int m, int d, int h = 0, int n = 0, int s = 0)

Constructs a time based on y m d h n s.

 


 

Time(FileTime filetime)

Constructs based on a platform specific filetime.

 

 

Public Member List

 

byte hour

Hour.

 


 

byte minute

Minute.

 


 

byte second

Second.

 


 

virtual static Time High()

Returns the highest possible time (year 4000).

 


 

virtual static Time Low()

Returns the lowest possible time (year -4000).

 


 

void Set(int64 scalar)

Assign a time that is stored in the numeric scalar.

 


 

virtual int64 Get() const

Converts the time into a numeric value.

 


 

FileTime AsFileTime() const

Converst the time into a system specific value.

 

 

Last edit by cxl on 01/09/2012. Do you want to contribute?. T++