use separate directives for time formatting and scanning