Does this take into account historical changes of timezones and calendars?
Asking, because this can get quite messy and facepalm'y. Things like countries skipping a day (or even a few weeks) are quite a normal thing. As are things like "we change how or if we use daylight savings time whenever we change government".
Tom Scott has a video in Computerphile that shows how messy things can get.
perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'