Expand environnement variable in constants

0 votes
asked Oct 24, 2016 in Wanted features by Serge Wenger Work (8,870 points)
To automatically set some text (Title, caption, ...), it would be nice to have environnement variable in "constant" like with "include"
For example (under Windows)
!define THE_DATE %date%
Title Generated THE_DATE
Best Regards

1 Answer

+1 vote
answered Oct 25, 2016 by plantuml (164,520 points)
selected Oct 26, 2016 by Serge Wenger Work
Best answer

Good idea!

With last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

You can have:

!define THE_DATE %date%
!define ANOTHER_DATE %date[yyyy.MM.dd G 'at' HH:mm:ss z]%
Title Generated THE_DATE or ANOTHER_DATE
alice -> bob

The format for date is defined here:


Thanks for the suggestion,

commented Oct 26, 2016 by Serge Wenger Work (8,870 points)
Thanks, it is working well