date format
Aug. 1st, 2014 03:59 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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?
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?
no subject
Date: 2014-08-04 09:23 am (UTC)no subject
Date: 2014-08-04 11:30 am (UTC)