Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: Was the Y2K crisis real?. Parent comment
I looked up my old code. Shave off a bit of the year and:
struct Date { unsigned day : 5; unsigned month : 4; unsigned year : 7; };
and as it was an accounting application, working with the bitfields was so much nicer than ordinal days you would use nowadays.
month and years was all you really cared about anyway when summarising data. in finance all months have 30 days anyway.
I looked up my old code. Shave off a bit of the year and:
a full date in 16 bits. (well, in borland C++ 5 at least)and as it was an accounting application, working with the bitfields was so much nicer than ordinal days you would use nowadays.
month and years was all you really cared about anyway when summarising data. in finance all months have 30 days anyway.