Constructors
constructor
- new PureDate(date: string | Date): PureDate
-
Properties
Readonly
jsDate
jsDate: Date
Methods
subtract
- subtract(other: PureDate): number
-
Returns number
toString
- toString(): string
-
Returns string
Static
isValid
- isValid(jsDate: Date): boolean
-
Returns boolean
Represents a pure date (with no time component). Useful for e.g. representing dates in a timeseries.
Internally the date is stored as a JS
Date
object in the UTC timezone with midnight (00:00:00) as the time component.