Dogs, like most mammals, have a circadian rhythm, an internal sense that tells them when to sleep or when to be active.
Perhaps it's their bodies, though not their minds, that can detect roughly what time it is.
While it doesn't prove that dogs can smell time, it's an intriguing idea.