Yeah, I fussed with month lengths and then another player was all "Pffft, use the day of the year the month ends on, instead of the length of the month." It does somewhat simplify the mayhem.
I need to handle Recurse not having a named day of its own, though; thanks for reminding me. At the moment, I'm just handling it as a one-day month, which will work but require a little handling.
Posted 16 months ago by
Coraline Ripley

|
Permalink
So, are there actually eight days in a week? Any idea why the official calendar shows only seven? Or why the days of the week reset every month, even though the API clearly suggests otherwise?
@fmoo, I like your use of divmod... totally forgot that was available. Going to go back and redo a bunch of my code to steal from my bette... err, optimize.
Posted 16 months ago by
Wounder

|
Permalink
I'm glad I perused the old topics before starting my own on this. Here's my own Python date/time script:
gist.github.com/4009989
It's probably not as elegant as the others, since I'm just learning Python (I'm a Java dev by trade). But, you can customize the format and supply your own date, which is kinda fun.
For any of these scripts, I suggest using Rainmeter (Windows) or GeekTool (Mac) to present the output on your desktop. Then you always know what time it is!