Rails allows calling `to_s` with an optional format argument on dates. This can lead to cryptic "wrong number of args" errors when you end up calling something like `http://nil.to _s(:db)` Using the alias `to_formatted_s(:db)` leads to a much nicer "no method error"
-
-
Yup. And for other uses you probably really want ISO 8601.
-
Nah clearly julian days since 2000-01-01 as a float is the way to go
- 8 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.