Created
August 26, 2012 15:54
-
-
Save numinit/3481274 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts (Class.new(Time) {|c| c.send(:define_method, :to_s) {"#{%w(Sun Morn Tir Mid Tur Fre Lore)[wday]}das, #{mday}#{%w(st nd rd th)[(mday >= 11 && mday <= 13 || (a = (mday - (mday.to_f / 10.0).floor * 10) - 1) > 3 ? 3 : a)]} of #{['Morning Star', 'Sun\'s Dawn', 'First Seed', 'Rain\'s Hand', 'Second Seed', 'Midyear', 'Sun\'s Height', 'Last Seed', 'Hearthfire', 'Frostfall', 'Sun\'s Dusk', 'Evening Star'][month - 1]}, 4E #{year - 1810}"}}).now.to_s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what do