Class: Planik::Lohnausweis::TimeEndFormatter
- Defined in:
- lib/lohnausweis/arbeitslistespalten.rb
Instance Attribute Summary
Attributes inherited from Formatter
Instance Method Summary collapse
Methods inherited from Formatter
Constructor Details
This class inherits a constructor from Planik::Lohnausweis::Formatter
Instance Method Details
#format(time) ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/lohnausweis/arbeitslistespalten.rb', line 32 def format time if time.nil? return nil end s = time.strftime("%H:%M") s == "00:00" ? "24:00" : s end |