HELP: Date-detector hints: year-range, pivot, locale, epoch-base TYPE: OBJECT SYNTAX: DATE(YEARMIN=num,YEARMAX=num,PIVOT=num,LOCALE=AUTO/ISO/DE/US/ANSI/FR/CH,EPOCHBASE=AUTO/UNIX/LILIAN/J2000/EXCEL)
The DATE sub-object inside DETECT(HINTS(...)) carries date-detector filters that restrict the type detector at bit-setting time. Every hint is optional; omitting them keeps the detector at its default, which sets every plausible date-subformat bit and lets the picker resolve via highest-bit-wins.
YEARMIN and YEARMAX bound the plausible 4-digit year. Values outside this range cause the corresponding DATE bits to stay clear.
The defaults are deliberately wide; tighten them only when the input domain is known. For example, banking data with historical entries back to 1800:
detect(hints(date(yearmin=1800 yearmax=2026)))
PIVOT controls the cut-off for 2-digit years. Values <= PIVOT map to 20YY (current century), values > PIVOT map to 19YY. The default matches DEFAULTS.PIVOT.
detect(hints(date(pivot=30)))
LOCALE narrows the locale set for date detection (e.g. only DE-style DD.MM.YYYY). AUTO falls back to HINTS.LOCALE.
EPOCHBASE selects the integer-as-date interpretation: AUTO, UNIX, LILIAN, J2000 or EXCEL. Use it when binary date columns are known to use a specific epoch.
NUMBER: YEARMIN=num - Lower bound for plausible 4-digit year (filters DATE bits) [1900]NUMBER: YEARMAX=num - Upper bound for plausible 4-digit year (filters DATE bits) [2100]NUMBER: PIVOT=num - 2-digit-year pivot: YY<=PIVOT->2000+, YY>PIVOT->1900+ [DEFAULTS.PIVOT=49]NUMBER: LOCALE=AUTO/ISO/DE/US/ANSI/FR/CH - Per-DATE locale override; falls back to HINTS.LOCALE if AUTO [AUTO]
AUTO - All locale-conformant subformat bits set [default]ISO - ISO 8601 and ISO-derived patterns onlyDE - Germany: DD.MM.YYYY, dot decimalUS - USA: MM/DD/YYYY, comma thousandANSI - ANSI/British: DD/MM/YYYYFR - France: DD/MM/YYYY, comma decimal, space thousandCH - Switzerland: DD.MM.YYYY, apostrophe thousandNUMBER: EPOCHBASE=AUTO/UNIX/LILIAN/J2000/EXCEL - Epoch-base filter for FORMAT.INT date detection [AUTO]
AUTO - All epoch bases allowed [default]UNIX - UNIX epoch only (1970-01-01, time_t)LILIAN - Lilian day number only (1582-10-15, IBM COBOL)J2000 - J2000 epoch only (2000-01-01)EXCEL - Excel serial date only (1899-12-30)