Class: Kiss::Format::Date
- Inherits:
-
DateTime
- Object
- Kiss::Format
- DateTime
- Kiss::Format::Date
- Defined in:
- lib/kiss/format.rb
Direct Known Subclasses
Class Method Summary collapse
Methods inherited from DateTime
convert_value_local_to_utc, convert_value_utc_to_local, parse, validate
Methods inherited from Kiss::Format
inherited, lookup, parse, validate
Class Method Details
.value_to_s(value, context = {}) ⇒ Object
157 158 159 |
# File 'lib/kiss/format.rb', line 157 def self.value_to_s(value, context = {}) convert_value_utc_to_local(value, context).strftime("%m/%d/%Y").gsub(/0(\d[\:\/])/, '\1') end |