refactored time/date commands