danlucraft /blog

Yaml WTF

November 2008 • Daniel Lucraft

What do you suppose this evaluates to in Ruby YAML:

YAML.load("18:00")

The string "18:00"? The hash {18 => 0} ? Wrong. The answer is: 1080.

Why? Sexagesimal of course! As used by the ancient Sumerians.

blog comments powered by Disqus