date format

Aug. 1st, 2014 03:59 pm
marnanel: (Default)
[personal profile] marnanel
A Gregorian date encoding I used in a personal system: I think it nicely balances human readability with brevity. It is only well-defined between 2010 and 2039.

Consider the date as a triple (y,m,d) where:
y is the year number AD minus 2010
m is the month number, 1-based
d is the day of the month, 1-based

So today, 1st August 2014, is (4,8,1).

Then define a partial mapping from integers to characters thus:
x=0 to x=9 are represented by the digits 0 to 9
x=10 to x=31 are represented by the lowercase letters a to u

Translate the date triple and concatenate.

Thus today is written 481.

Years outside the given range are written in full, e.g. 1975-01-30 -> 19751t.

Thoughts?

Date: 2014-08-04 09:23 am (UTC)
From: [personal profile] treeowl
Yes, I have a thought: that's utterly incomprehensible. Why would you use that instead of YYYY-MM-DD?

Profile

marnanel: (Default)
Monument

January 2022

S M T W T F S
      1
2345678
9101112131415
1617 1819202122
23242526272829
3031     

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 11th, 2025 03:34 am
Powered by Dreamwidth Studios