Tests for time printing and retrieving