Check if time is between two time inputs.

I understand that, I just can't grasp the logic I should use.

Using Unix time (seconds since 00:00:00 Jan 1, 1970 UTC), the single statement I posted works for every possible case, spanning any number of seconds, minutes, hours, days, weeks, months or years between 1970 and 2038.