Module: Reve::Extensions::String
- Included in:
- String
- Defined in:
- lib/reve/extensions.rb
Instance Method Summary collapse
Instance Method Details
#to_time(form = :utc) ⇒ Object
82 83 84 85 86 87 88 |
# File 'lib/reve/extensions.rb', line 82 def to_time(form = :utc) begin return Time.parse(self + ' +00:00') rescue Exception => e self end end |