Help for this page

Select Code to Download


  1. or download this
    sub myfunc {
        my ($ts, $interval) = @_;
    ...
        $minute = substr($ts, 10, 2);
        return $interval * int($minute / $interval);
    }