IPS Blue
15 06 2008

Sun, 15 Jun 2008

base 13--right

So, it occurred to me that it would be really neat to date my bloxsom blog entries according to an imaginary calender system. In order to accomplish this, my perling skills would need to be equal to successfully creating a plug-in for blosxom. At my present rate of becoming acquainted with perl, this should be the case around the year 28250 I.E. ("imaginary era").

In the meantime, though, I did evolve a method to convert an ordinary date to an imaginary one. It had to be done. It just had to.

To transform an ordinary date to an imaginary one, perform the following operations.
-Convert to yyyymmdd format.
-Convert mm to base 12.
-Add 300 to yyyy.
-Append the base-13 mm form to the previous result.

To transform an imaginary date to an ordinary format, do the following.
-Consider the right-most character to be a base 13 number (A=10, B=11, and C=12). This is the mm value in a yyyymmdd result.
-From the four left-most numbers, subtract 300.
-To the previous result, append the mm value.



posted at: 09:08 | path: | permanent link to this entry