Help for this page

Select Code to Download


  1. or download this
    sub dayofweek {
      # 0=Sunday .. 6=Saturday
    ...
          localtime(POSIX::mktime(0,0,0,1,$mon,$year) - 3600*3);
      return $mday;
    }
    
  2. or download this
    sub dayofweek { (localtime $_[0])[6] }