[Basic] F_Date Struct

This structure is used for the time-limited items expiration time. It is as follows (In C++):

struct f_date {
    unsigned year : 8;
    unsigned month : 5;
    unsigned day : 6;
    unsigned hour : 6;
    unsigned minute : 7;
};

Data Representation

Minute:|6543210. ........ ........ ........| 7 Bits
Hour:  |.......5 43210... ........ ........| 6 Bits
Day:   |........ .....543 210..... ........| 6 Bits
Month: |........ ........ ...54321 0.......| 5 Bits
Year:  |........ ........ ........ .6543210| 8 Bits
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License