sys: add utility functions for `struct tm`

Depends on #1154 (for MSP-430).