This isn't a bug, I suppose, but it is confusing... While messing around with a python implementation of the date functions for Glitch, I noticed that although the Calendar shows seven day weeks, the API page for time says that there are eight days in a week (
http://api.glitch.com/docs/time/). The Calendar shows today being Fabday, although counting out from the start of the year, it would be Theday if there were eight days in a week. I'm assuming the API docs are out-of-date, but confirmation would be nice... including what day of the week got dropped (I could wait a week and find out, I suppose!).
Also, if Glitch does use a seven day week, the PHP example is broken.
Posted 16 months ago by
Wounder

|
Permalink
Here's the official Calendar
beta.glitch.com/calendar/
It does show 7 day weeks. It also shows each month starting again on the first day of the week. It's not clear if the announcement at the top of the page is in synch with any of this.
Posted 16 months ago by
WindBorn

|
Permalink
Thanks, that's what I was referencing as showing seven days in a week. The reason the days start over is how they calculate the day in the month... the short version is the cute Glitch calendar is tricky to work with. Plus they lose almost all of the available date libraries, meaning they'd have to rewrite a bunch of that. I can't imagine they feel like diverting the resources for that.
And as far as the "Game time:" in the upper right, every time I checked it while working on the python version, it matched the time shown in the calendar.
Posted 16 months ago by
Wounder

|
Permalink
Actually, I just remembered something... the API shows this example for the bizarre case of Recurse:
Recurse is not part of the regular week, so if the 11th of Eleventy is a Moonday, then the 1st of Primuary will be a Twoday.
That implies that the Calendar *shouldn't* show the days of the week restarting each month. Wonderful. Now I need to go back and double check that.
Posted 16 months ago by
Wounder

|
Permalink
I went back and tested, but realized I'm basing my dates on there being eight days of the week... so the days of the week will have to wait until a dev comments or I gather enough statistical data (reason to check in every four hours!).
In any case, the algorithm as they have it resets days of the week at the start of the month, so the Recurse example would never come up anyway. Might be part of the reason why they reset the days of the week, even.
Posted 16 months ago by
Wounder

|
Permalink
I... I didn't realize there
was an API forum. Sorry for the mistaken post! I still can't see the link to it, but in any case, my apologies.
Posted 16 months ago by
Wounder

|
Permalink