This is interesting. If you convert an instance of DateTime to YAML and reload it using YAML.load, it comes back as an instance of Time, minus the fractional seconds.
Also, if you convert a DateTime to UTC then to a Time, it drops the fractional seconds. Converting a DateTime directly to a Time does NOT drop the fractional seconds, nor does converting a Time to UTC. Weird.
As you can see, I'm using ActiveSupport. I don't really know how much (or if any) that is affecting this weird behavior.
Heh, I don't really know if "fractional seconds" is proper terminology either.
1 comments:
Hi There I'd love to thank you for such a terrific quality site!
I was sure this is a nice way to make my first post!
Sincerely,
Robin Toby
if you're ever bored check out my site!
[url=http://www.partyopedia.com/articles/mexican-party-supplies.html]mexican Party Supplies[/url].
Post a Comment