(v13) The localedaytime operator
This page applies to Harlequin v13.1r0 and later; both Harlequin Core and Harlequin MultiRIP
systemdict
localedaytime string
This operator, introduced for version 4.5, returns the date and time in a variable format and language, determined by the locale and any user settings permitted by the operating system. The string
returned is in the same format as provided by the C function strftime()
when called with the %c
parameter. (This is a string containing the date and the time, using the locale’s format for both items.)
The format is subject to:
- On Windows systems, the Regional Settings control panel (renamed as Regional Options under Windows 2000).
- On Macintosh, the Date & Time control panel.
- In the UNIX operating system, environment variables such as
LC_TIME
,LC_ALL
, orLANG
.
Note: Be cautious. The output can be a long string and the relative order of date and time may vary between locales.
We recommend the use of localedaytime
where the user will see the string, for example in messages or in a marginal annotation on a page of output. We recommend you to restrict the use of daytime
to historical compatibility or with caution to applications where you wish to process a string of fixed format.
Examples:
UK and US English, Windows XP: Saturday, July 29, 2000 06:03:52
See also: (v13) The daytime operator .