(Translate): Add new variable NOW that represent the current date

and time.
This commit is contained in:
Pascal Obry
2003-12-17 15:01:10 +00:00
parent 2c8302e337
commit 19abcbc0e3

View File

@@ -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,