Help for this page

Select Code to Download


  1. or download this
    use POSIX;
    sub timenow_is_between
    ...
            return ( $timenow ge $bgn and $timenow lt $end );
        }
    }
    
  2. or download this
    if ( timenow_is_between( "20:30", "07:00" ) {
        print "this program is running at night\n";
    } else {
        print "it is not night time right now\n";
    }