Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Expand environnement variable in constants

0 votes
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
asked Oct 24, 2016 in Wanted features by Serge Wenger Work (4,350 points)

1 Answer

+1 vote
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,

answered Oct 25, 2016 by plantuml (125,190 points)
selected Oct 26, 2016 by Serge Wenger Work
Thanks, it is working well
Support This Project Offer 250 Mo! Follow PlantUML on Twitter