Class: Gloo::Convert::StringToDateTime
- Inherits:
-
Object
- Object
- Gloo::Convert::StringToDateTime
- Defined in:
- lib/gloo/convert/string_to_datetime.rb
Instance Method Summary collapse
-
#convert(value) ⇒ Object
Convert the given string value to a date and time.
Instance Method Details
#convert(value) ⇒ Object
Convert the given string value to a date and time.
15 16 17 |
# File 'lib/gloo/convert/string_to_datetime.rb', line 15 def convert( value ) return Chronic.parse( value ) end |