extracting a time-display directive to reduce duplication