You've already forked templates-parser
mirror of
https://github.com/AdaCore/templates-parser.git
synced 2026-02-12 12:29:55 -08:00
(Translate): Add new variable NOW that represent the current date
and time.
This commit is contained in:
@@ -3032,6 +3032,12 @@ package body Templates_Parser is
|
||||
Strings.Left),
|
||||
Translations);
|
||||
|
||||
elsif T_Name = "NOW" then
|
||||
return Translate
|
||||
(Var,
|
||||
GNAT.Calendar.Time_IO.Image (Now, "%Y-%m-%d %H:%M:%S"),
|
||||
Translations);
|
||||
|
||||
elsif T_Name = "YEAR" then
|
||||
return Translate
|
||||
(Var,
|
||||
|
||||
Reference in New Issue
Block a user