Please provide a way to define a date

0 votes
asked Oct 24, 2016 in Closed feature request by Serge Wenger Work (9,850 points)

Please provide a way to define a date.

For example:

@startuml
!define THE_DATE %date%
Title Generated THE_DATE
@enduml

1 Answer

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

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

You can have:

@startuml
!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
@enduml

The format for date is defined here: https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html

commented Oct 26, 2016 by Serge Wenger Work (9,850 points)
Thanks, it is working well
...