Class: ExtCountDate

countconversion.ExtCountDate(countType)

Extend the ExtDate object to days counter with special behavior or contraints.

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.
...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: