In the following example, we demonstrate how to write a testable component which functionality depends on the current time.