dxFeed Graal CXX API v9.0.0
Loading...
Searching...
No Matches
day_util Namespace Reference

Functions of the day identifiers: the number of days since Unix epoch of January 1, 1970. More...

Functions

DXFCPP_EXPORT std::int32_t getDayIdByYearMonthDay (std::int32_t year, std::int32_t month, std::int32_t day)
 Returns the day identifier for the specified year, month and day in Gregorian calendar.

Detailed Description

Functions of the day identifiers: the number of days since Unix epoch of January 1, 1970.

Function Documentation

◆ getDayIdByYearMonthDay()

DXFCPP_EXPORT std::int32_t day_util::getDayIdByYearMonthDay ( std::int32_t year,
std::int32_t month,
std::int32_t day )

Returns the day identifier for the specified year, month and day in Gregorian calendar.

The day identifier is defined as the number of days since Unix epoch of January 1, 1970. Month must be between 1 and 12 inclusive. Year and day might take arbitrary values assuming proleptic Gregorian calendar.

Parameters
yearThe year.
monthThe month between 1 and 12 inclusive.
dayThe day.
Returns
The day identifier.
Exceptions
InvalidArgumentExceptionif the month is less than 1 or more than 12.