So I stumbled across
neko's post here, and well there you go:
Download script or
visit online version. Please note that the results of the online version are based on the UTC time zone. There's obviously no IC timezones, thus I chose to use UTC, as it's a quasi-Standard by now. The local version uses local time zone, ATM.
InstallationIf you do not want to install or download anything, please use
the online version. It has the same features as the downloadable one but no prerequisites have to be installed.
If you want to use the script version, first, you need to install
Ruby if you haven't done that yet. That will also allow you to use some other useful pieces of crap written by me (all available here in the Mods forum...)
Save
the file somewhere on your computer, rename it to psdate or something (psdate.rb if you want to) and start it either like this,
./<filename>
after you set the executable bit (*nix), or like that,
ruby <filename>
(I will only use the first form in below examples with the filename psdate)
What will be shown if you run this simple command or open up the online version is the current date in Yliakum.
Advanced usageIf you call the script like this
./psdate -h
-or-
./psdate --help
it'll tell you about its other features:
Call: psdate [OPTION] [+FORMAT]
Returns the current date in Yliakum in the supplied FORMAT or converts an Yliakum date back to an IRL date.
Option can be one of the following:
-d STRING Return date according to STRING, not "today"
-r MONTH/DAY Convert the specified Yliakum date into a real date
FORMAT determines the output of an Yliakum date. The following statements can be used:
%% literal %
%b abbreviated month name ("Uno" through "Ynd")
%B the full month name ("Unodin" through "Yndoli")
%d day of the month (01 through 39)
%D counted day of the month (1st through 39th)
%j day of the year (001 through 366)
%m month of the year (01 through 12)
When using -r, this option is ignored and the date is returned in a default date format.
(For the online version,
click here, and you'll get a similar message)
Basically that's two other features, one to convert an "arbitrary" date (other than "today") into a PS date, the other to transform a PS date back into an IRL date. Examples:
./psdate -r 5/12
http://psstatus.uglyhorst.de/date.php?reverse=5/12
will tell you which real date 12th Quintahl (fifth month) is on.
./psdate -d 12/13
http://psstatus.uglyhorst.de/date.php?date=12/13
will tell you what day December 13th will be in PS.
(the -d command accepts more different formats than -r, which just accepts the one specified above (MONTH/DAY). Errors on some strange formats though. Accepted formats most likely differ between the two versions.)
You can also have fun with changing the format of the output, e.g.
./psdate +%m-%d
http://psstatus.uglyhorst.de/date.php?format=%m-%d
would result in something like
Kra-29
Have fun guys.
(this is not thoroughly tested and might still contain leap year bugs - so tell me if you find it's off by one!)