Constructor
new ExtCountDate(countType)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
countType |
string | the desired counter, one of the following values: "julianDay" : 0 on M-004713-12-02T12:00:00Z (1 January -4712 at noon UTC); "julianDayAtNight" : 0 on M-004713-12-02T00:00:00Z (1 January -4712 at midnight UTC); "modifiedJulianDay" : 0 on M1858-11-27T00:00:00Z, i.e. : Julian Day - 2400000.5; "nasaDay" : 0 on M1968-06-03T00:00:00Z, i.e. : Julian Day - 2440000.5; "sheetsCount" (or "windowsCount") : 0 on M1900-01-10T00:00:00Z, i.e. on 1899-12-30Y00:00:00Z, used on most spreadsheets; "MSBase" : Microsoft date baseline. Same as above, except that the time part is negative when the whole timestamp is negative; "macOSCount" : 0 on M1904-01-11T00:00:00Z, used on MacOS systems. "SQLdays" : 0 on M0000-01-11, i.e. on ISO 0000-01-01. The count is the integer part (floor) of the result in days. Values < 60 are considered invalid as long as SQL calendar is erroneous before 0000-03-01. Values > 3_652_424 are considered invalid since SQL does not consider dates above 9999-12-31 | |
...myArguments |
string | Array.<number> |
<optional> |
the parameter or parameter list passed to Date. |
- Source:
Extends
- Date
Members
getCount
Give the decimal value of the instantiated chronological counter
- Source:
setFromCount
Set ExtCountDate object to the value corresponding to the decimal value of the specified counters. For MSBase, if -1 < counter value < 0, returns NaN
- Source: