OnixS C++ Tullett Prebon SURF Handler 1.6.1
API documentation
Loading...
Searching...
No Matches
Date Struct Reference

Public Member Functions

 Date ()
 Date (int year, int month, int day)
std::string toString () const

Public Attributes

int year
int month
int day

Detailed Description

Definition at line 32 of file FieldValue.h.

Constructor & Destructor Documentation

◆ Date() [1/2]

Date ( )

Initialize default instance.

◆ Date() [2/2]

Date ( int year,
int month,
int day )

Initializes a new instance to the specified year, month, and day.

Parameters
dayThe day (1 through the number of days in month).
monthThe month (1 through 12).
yearThe year (1 through 9999).
Exceptions
ArgumentRangeExceptionIf year is less than 1 or greater than 9999 - or - month is less than 1 or greater than 12 - or - day is less than 1 or greater than the number of days in month.

Member Function Documentation

◆ toString()

std::string toString ( ) const

Returns string representation.

Member Data Documentation

◆ day

int day

The day of the month represented by this instance.

Definition at line 53 of file FieldValue.h.

◆ month

int month

The month component of the date represented by this instance.

Definition at line 50 of file FieldValue.h.

◆ year

int year

The year component of the date represented by this instance.

Definition at line 47 of file FieldValue.h.