🕷 zenspider.com

by ryan davis



sitemap
Looking for the Ruby Quickref?

DateTime sucks

Published 2010-06-23 @ 15:12

Tagged thoughts

# of iterations = 100,000
null_time                                            =  0.01s
Time.parse(s)                                        = 22.64s
DateTime.parse(s)                                    = 43.75s
DateTime.civil(*Time.parse(s).to_a.first(6).reverse) = 35.22s

Unless you’re doing geology or astronomy… try to stick to Time.