Is it possible to shrink unixtime format: 1506174280 from unt32 to uint16, removing hours, minutes and seconds?

  • Comments are not intended for extended discussion; conversation moved to chat . - Nick Volynkin

1 answer 1

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.

  • one
    The 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