archi icon indicating copy to clipboard operation
archi copied to clipboard

[Feature Request] Dates in Label Expressions

Open smileham opened this issue 3 years ago • 3 comments

Is it possible to introduce the concept of (something like) $system{today} in order to enable a "Printed/Exported on" label to be produced.

I have other means of "version control" for exported/printed views, but it would be great if a "dynamic" "today" date could be included for each one.

smileham avatar Dec 01 '21 12:12 smileham

I suspect that "today" would not be enough and users would want more complex date/time formats and time zones.

Regarding "dynamic". It would only be the time when the View was generated.

Phillipus avatar Dec 01 '21 12:12 Phillipus

A potential workaround for this would be to use $model{property:PrintDate} which would be replaced with the value of the, model-wide, property named PrintDate. Of course you would have to update it (but only once) before generating your reports. This would avoid all the issues coming with dates (format, timezone...).

jbsarrodie avatar Jan 03 '22 13:01 jbsarrodie

@jbsarrodie it looks like xkcd is as timely as ever when it comes to this topic.

https://xkcd.com/2562

I like the approach you suggest

Scott

sonear avatar Jan 03 '22 19:01 sonear