Class: Planik::Lohnausweis::TimeEndFormatter

Inherits:
Formatter
  • Object
show all
Defined in:
lib/lohnausweis/arbeitslistespalten.rb

Instance Attribute Summary

Attributes inherited from Formatter

#align_right

Instance Method Summary collapse

Methods inherited from Formatter

#initialize, #summe

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