AbstractStaticapplyConverts and normalizes a date string into a standard ISO8601 UTC-based format. This function supports a variety of input formats:
The input date string to normalize.
OptionaldateFragmentsOrder: TypeDateFragments = ISO_UTC_DATE_FRAGMENTS_ORDERConfiguration array defining the index order of year, month, day, and separator characters.
OptionalreverseTimeZone: boolean = falseIf true, reverses the sign of the timezone offset.
The normalized ISO8601 date string, e.g., "1988-09-13T00:00:00Z".
StaticapplyReorder the ISO UTC date to the output format using the output section (index = 1) of the date fragments order provided. The time zone is empty since all dates shown to the user are in UTC.
{string} The ISO date to format.
OptionaldateFragmentsOrder: TypeDateFragments{TypeDateFragments} The date fragments order (obtained with getDateFragmentsOrder).
{boolean} Flag indicating that we must change the time zone sign before the conversion.
The reformatted date string.
StaticconvertConvert a milliseconds date to string date. Date format is YYYY-MM-DDTHH:mm:ss.
milliseconds date
date string
StaticconvertConvert a UTC date to a local date
date to use
local date
StaticconvertConvert a date to milliseconds
date to use
date as milliseconds
StaticconvertConvert a date local to a UTC date
date to use
UTC date or empty string if invalid date (when field value is null)
StaticcreateCreate locale tooltip (fr-CA or en-CA)
{string} date to use
{string} locale to use (fr-CA or en-CA)
locale tooltip
StaticcreateCreate the Geoview time dimension from ESRI dimension
esri time dimension object
true if it is ESRI Image
the Geoview time dimension
StaticcreateCreate the Geoview time dimension from OGC dimension
The OGC time dimension object or string
the Geoview time dimension
StaticcreateCreate a range of date object from OGC time dimension following ISO 8601
array of date from the dimension
StaticdeduceDeduce the date format using a date value.
The date format.
StaticextractExtract pattern to use to format the date
date as an ISO 8601 date
the formatted date
StaticformatFormat a date to specific format like 'YYYY-MM-DD'
date to use
format of the date.
formatted date
StaticformatFormat a date to a pattern
date to use
the date precision pattern to use
OptionaltimePattern: TimePrecisionthe time precision pattern to use
formatted date
StaticformatConverts a Date object to an ISO 8601 formatted string in the local time zone. The resulting string will be in the format: YYYY-MM-DDTHH:mm:ss.sss
The Date object to be formatted.
The formatted date string in ISO 8601 format.
StaticgetReturns the input/output fragment order and separators for a given date format. Supports formats like "YYYY-MM-DD", "YYYY-MM-DDTHH:MM:SS", or "YYYY-MM-DDZ".
OptionaldateFormat: stringOptional date format string to analyze.
The input/output fragment positions and separators.
StaticgetGet dayjs date object for given date in number or string.
dayjs date object
StaticguessAttempts to guess the display pattern for a given date based on the provided format string.
An array of dates to analyze. Can be Date objects, timestamps (numbers), or date strings.
OptionalonlyMinMax: boolean = trueIf true, only considers the minimum and maximum dates in the array.
A tuple containing the guessed date and time precision.
Class used to handle date as ISO 8601
Exports
DateMgt