wouldn't this be generally useful as a function, eg `os_local_time()` ?