Is it possible to shrink unixtime format: 1506174280 from unt32 to uint16, removing hours, minutes and seconds?
1 answer
If you are interested in accuracy up to days, then 65535/365 = 179 years will be included in uint16 approximately. It certainly will not be unix time, but just the number of years.
- oneThe number of days probably - Vladimir Gamalyan
- 179 years * 365 days a year = 65535. No, 179 years after all. - tilin
- about the last sentence "..will not unix time, but just the number of years." - Vladimir Gamalyan
|