Recurse isn't a weekday, it's just Recurse. There are 307 weekdays in a Glitch year, plus Recurse - a total of 308 days. days_since_epoch is really weekdays_since_epoch. That value is only used to work out which day of week it is, and so excludes Recurse. The day_to_md function does take account of Recurse.
Posted 15 months ago by
dopiaza

|
Permalink
Hey Blast, I just sent you a pull request on Github with code updated for handling Recurse.
Would you have any interest in collaborating on an API gem? If not, do you mind if I incorporate your Date/Time code (with credit of course) into it? It seems cleaner than the date code I was working on.
Posted 15 months ago by
duien

|
Permalink
Yes! I actually have just made a gem out of it, I haven't committed the changes yet, because I wanted to fix the issue dealing with Recurse, first. I'll push it as soon as I get a chance. Thanks for the contribution, duien, and thanks for the clarification, dopiaza.
Posted 15 months ago by
Blast

|
Permalink
It's a working gem now: https://rubygems.org/gems/glitch-time
Posted 15 months ago by
Blast

|
Permalink