comparison getan/template.py @ 370:f4dcfbede99b

Move justification of human_time to templates (only for zeiterfassung) The totals are often longer 100h and more, so if justification is desired here, it would not be to two full hour digits anyway.
author Thomas Arendsen Hein <thomas@intevation.de>
date Mon, 03 Mar 2014 15:57:54 +0100
parents 1b190fa27482
children a805aaed97dd
comparison
equal deleted inserted replaced
369:c18bd0042eda 370:f4dcfbede99b
24 if (s % 60) >= 30: 24 if (s % 60) >= 30:
25 m += 1 25 m += 1
26 if m == 60: 26 if m == 60:
27 m = 0 27 m = 0
28 h += 1 28 h += 1
29 return "%2d:%02d" % (h, m) 29 return "%d:%02d" % (h, m)
30 30
31 31
32 def date_format(d): 32 def date_format(d):
33 return d.strftime("%d.%m.%Y") 33 return d.strftime("%d.%m.%Y")
34 34
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)