https://ctan.org/pkg/datetime2
If I add "\usepackage{datetime2}" to the "code tex-map" block in my
thconfig file, then Therion throws several compile errors. It basically
says it does not have any idea what that command means.
Therion also does not understand \today and \currenttime. These two
should be part of a base set of packages. The datetime2 package
overrides them with new definitions.
Therion uses Plain TeX format, so LaTeX packages don't work.
Plain defines only the following numeric variables: \day, \month, \year.
You can use these directly or combine the \month with a series of \ifs to print a month name (AI can help to write this, don't forget to specify it should be used in Plain TeX).
> On 9/18/25 21:56, bruce@tomo.co.nz wrote:
>> I have been using /currentdate to identify in an exported pdf map
>> header when the map was compiled.
...
>> It takes the system date and format as input. So I was using Windows
>> 10 OS settings to format the date how I preferred it, in the case, d
>> Mmm YYYY.
>>
>> Seems that Windows 11, my new OS does not have the ability to format
>> the system date in manner(s) that I find useful.
>>
>> Is there a way for Therion to take the date provided by the OS and
>> reformat it?
\currentdate contains actually only a string preformatted by Therion according to the locale set on the system. It should be enough to set your date formatting on Windows.
Best wishes
Martin