开发者

Hashing-algorithm for dates

开发者 https://www.devze.com 2022-12-08 01:59 出处:网络
What would开发者_StackOverflow中文版 be a good hash-algorithm to hash dates, e.g. 24/12/09 and 31/10/89?

What would开发者_StackOverflow中文版 be a good hash-algorithm to hash dates, e.g. 24/12/09 and 31/10/89?

The dates would range from about year 1950 to 2050.

Could using the unix timestamp somehow, be possible?


You could use the number of days instead of the number of seconds since the start of the Unix Epoch. Just calculate:

<unix timestamp> / 86400
0

精彩评论

暂无评论...
验证码 换一张
取 消