Run some code with Time Input widget on Particle Photon

Hello everyone.

I am trying to implement the Time Input widget with a Particle Photon.
I need certain code to run only in the Off Time.
I want to create a Quite time between the Start and Stop times of Input widget.
Can this be accomplished?

I have looked at this example but don’t seem to understand how to implement it.