summaryrefslogtreecommitdiff
path: root/metapost/context/base/metafun.mp
diff options
context:
space:
mode:
Diffstat (limited to 'metapost/context/base/metafun.mp')
-rw-r--r--metapost/context/base/metafun.mp14
1 files changed, 8 insertions, 6 deletions
diff --git a/metapost/context/base/metafun.mp b/metapost/context/base/metafun.mp
index cfbf7b2f9..98ea1980f 100644
--- a/metapost/context/base/metafun.mp
+++ b/metapost/context/base/metafun.mp
@@ -53,12 +53,14 @@ input mp-func.mp ;
string metafunversion ;
-metafunversion = "metafun" & " " &
- decimal year & "-" &
- decimal month & "-" &
- decimal day & " " &
- decimal (time div 60) & ":" &
- decimal (time-(time div 60)*60) ;
+metafunversion = "metafun" & " " &
+ decimal year & "-" &
+ decimal month & "-" &
+ decimal day & " " &
+ if ((time div 60) < 10) : "0" & fi
+ decimal (time div 60) & ":" &
+ if ((time-(time div 60)*60) < 10) : "0" & fi
+ decimal (time-(time div 60)*60) ;
let normalend = end ;