A collection of static utility methods for manipulation of int day id, that is the number of days since Unix epoch of January 1, 1970.
More...
|
static int | GetDayIdByYearMonthDay (int year, int month, int day) |
| Returns day identifier for 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.The value returned by this method for an arbitrary day value always satisfies the following equality: { More...
|
|
static int | GetDayIdByYearMonthDay (int yyyymmdd) |
| Returns day identifier for specified yyyymmdd integer in Gregorian calendar. The day identifier is defined as the number of days since Unix epoch of January 1, 1970. The yyyymmdd integer is equal to yearSign * (abs(year) * 10000 + month * 100 + day) , where year, month, and day are in Gregorian calendar, month is between 1 and 12 inclusive, and day is counted from 1. More...
|
|
static int | GetYearMonthDayByDayId (int dayId) |
| Returns yyyymmdd integer in Gregorian calendar for a specified day identifier. The day identifier is defined as the number of days since Unix epoch of January 1, 1970. The result is equal to yearSign * (abs(year) * 10000 + month * 100 + day) , where year, month, and day are in Gregorian calendar, month is between 1 and 12 inclusive, and day is counted from 1. More...
|
|
A collection of static utility methods for manipulation of int day id, that is the number of days since Unix epoch of January 1, 1970.
◆ GetDayIdByYearMonthDay() [1/2]
static int com.dxfeed.util.DayUtil.GetDayIdByYearMonthDay |
( |
int |
year, |
|
|
int |
month, |
|
|
int |
day |
|
) |
| |
|
inlinestatic |
Returns day identifier for 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.The value returned by this method for an arbitrary day value always satisfies the following equality: {
}
- Exceptions
-
ArgumentOutOfRangeException | when month is less than 1 or more than 12. |
- Parameters
-
year | year |
month | month |
day | day |
- Returns
- Returns day identifier for specified year, month and day in Gregorian calendar.
◆ GetDayIdByYearMonthDay() [2/2]
static int com.dxfeed.util.DayUtil.GetDayIdByYearMonthDay |
( |
int |
yyyymmdd | ) |
|
|
inlinestatic |
Returns day identifier for specified yyyymmdd integer in Gregorian calendar. The day identifier is defined as the number of days since Unix epoch of January 1, 1970. The yyyymmdd integer is equal to yearSign * (abs(year) * 10000 + month * 100 + day)
, where year, month, and day are in Gregorian calendar, month is between 1 and 12 inclusive, and day is counted from 1.
- Exceptions
-
ArgumentOutOfRangeException | when month is less than 1 or more than 12. |
- See also
- GetDayIdByYearMonthDay(int year, int month, int day)
- Parameters
-
- Returns
◆ GetYearMonthDayByDayId()
static int com.dxfeed.util.DayUtil.GetYearMonthDayByDayId |
( |
int |
dayId | ) |
|
|
inlinestatic |
Returns yyyymmdd integer in Gregorian calendar for a specified day identifier. The day identifier is defined as the number of days since Unix epoch of January 1, 1970. The result is equal to yearSign * (abs(year) * 10000 + month * 100 + day)
, where year, month, and day are in Gregorian calendar, month is between 1 and 12 inclusive, and day is counted from 1.
- Parameters
-
- Returns
The documentation for this class was generated from the following file:
- dxf_api/src/util/DayUtil.cs