[scripts] Added a datetime convenience function.
[get_hazel_data] Don't assume keys are ordered by creation time (whoops).