FIXUP: refactor struct tm parser
FIXUP: add missing alarm commands
FIXUP: error handling for time functions