Class: Cloudkeeper::Utils::Date

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudkeeper/utils/date.rb

Constant Summary collapse

DATE_FORMAT =
'%Y-%m-%dT%H:%M:%SZ'.freeze

Class Method Summary collapse

Class Method Details

.parse(date) ⇒ Object



6
7
8
# File 'lib/cloudkeeper/utils/date.rb', line 6

def self.parse(date)
  date.blank? ? '' : Time.strptime(date, DATE_FORMAT)
end