>> dt = DateTime.now
>> temp = YAML.dump(dt)
>> restored = YAML.load(temp)
>> restored.class
=> Time
Is there any more elegant way to deal with this other than
hard-coding a conversion back to DateTime:
>> temp = YAML.dump(dt)
>> restored = YAML.load(temp).to_datetime
>> restored.class
=> DateTime
?
Thanks!
-glenn