ATECC508A.Validity.compress
You're seeing just the function
compress
, go back to ATECC508A.Validity module for more information.
Specs
compress({DateTime.t(), DateTime.t()}) :: ATECC508A.encoded_dates()
Convenience function for compressing issue date/expiration tuples
Specs
compress(DateTime.t(), DateTime.t()) :: ATECC508A.encoded_dates()
Compress an issue date/expiration to a bitstring
This function can easily lose precision on the dates and times since so little is encoded. If accepting arbitrary datetimes, you'll want to check that the conversion didn't truncate in strange ways.
Important: the max issue year is 2031!!