Help for this page

Select Code to Download


  1. or download this
    my @days = qw(Sun Mon Tues Wed Thurs Fri Sat);
    my @mons = qw(Jan Feb Mar Apr May Jun Jul Aug Sept Oct Nov Dec);
    
  2. or download this
    my ($mday,$mon,$year,$wday) = (localtime)[3..6];
    
  3. or download this
    $date = "$days[$wday] $mons[$mon] $mday $year";
    return $date;
    
  4. or download this
    return "$days[$wday] $mons[$mon] $mday $year";
    
  5. or download this
    sub makeDate {
      my @days = qw(Sun Mon Tues Wed Thurs Fri Sat);
    ...
      $year += 1900;
      return "$days[$wday] $mons[$mon] $mday $year";
    }