AbstractStaticapplyReorder the date to the ISO UTC format using the input section (index = 0) of the date fragments order provided. This routine is used to convert the dates returned by the server to the internal ISO UTC format. It is also used to convert the date constants (date '...') found in the layer filter string using a reverse time zone to return the date to the same time zone the server use since the filter string will be sent to the server to perform the query.
{string} The date to format.
{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.
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.
StaticgetGet the date fragments order. Normaly, the order is year followed by month followed by day.
OptionaldateFormat: string{string} The date format to be analyzed.
array of index indicating the field position in the format. index 0 is for year, 1 for month, 2 for day and 4 for time. A value of -1 indicates theat the fragment is missing.
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