Syntax
int timebetween ( int starttime, int endtime )
Description
The timebetween function returns a 0 or 1 depending on whether the current time is between those specified. Use this function to determine whether a user is submitting a request within valid business hours. Times must be specified using the 24-hour clock. Do not use leading zeroes for time specifications, because this will be interpreted in octal. For example, 12:30 am can be 30 or 2430.
Example
If (timebetween(800, 1630)) { proc_working_hours_rules(); } else { proc_outside_working_hours_rules(); }