sys: add utility functions for `struct tm`