Glitch time and date class ported to Ruby, per spec: http://api.glitch.com/docs/time/
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.rvmrc
Gemfile
LICENSE.txt
README.rdoc
Rakefile
glitch-time.gemspec

README.rdoc

glitch-time

Rubygems

gem install glitch-time

rubygems.org/gems/glitch-time

This is a port of the Glitch time converter documented here: api.glitch.com/docs/time/

Converts real time to Glitch Time

In the world of Glitch a game day is four real hours long.

  • There are 308 days in a glitch year.

  • There are 24 hours in a day.

  • There are 60 minutes in an hour.

  • There are 4435200 real seconds in a game year.

  • There are 14400 real seconds in a game day.

  • There are 600 real seconds in a game hour.

  • There are 10 real seconds in a game minute.

The 308th day of the year, called Recurse, does not count as a weekday.

The Glitch epoch began at 1238562000 Unix time.

Copyright

Knock yourself out. Just give me credit where due.