Class: Timetrack::TimeFormatter Private
- Inherits:
-
Object
- Object
- Timetrack::TimeFormatter
- Defined in:
- lib/timetrack/time_formatter.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Format a Time as HH:MM
Class Method Summary collapse
- .format(time) ⇒ Object private
Class Method Details
.format(time) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5 6 7 |
# File 'lib/timetrack/time_formatter.rb', line 5 def self.format(time) Kernel.format '%02d:%02d', time.hour, time.min end |