Help for this page

Select Code to Download


  1. or download this
    # cat /home/otrsvpn/holiday.txt
    day1,23.10.
    day2,22.10.
    Gandhi Jayanti,02.10.
    Valentine's Day,14.02.
    
  2. or download this
    #!/usr/bin/perl
    use Date::Calendar;
    ...
    $calendar = Date::Calendar->new( $holiday_ref );
    $days = $calendar->delta_workdays (2015,10,01,2015,10,30,1,0);
    print " \n There are $days days between 01-10-2015 and 30-10-2015 \n";
    
  3. or download this
     # perl holiday.pl
     There are 18 days between 01-10-2015 and 30-10-2015