The repository contains a collection of different programming snippets to different programming languages from own developments as well as other projects
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
programming-examples/perl/String/Output month name and week ...

20 lines
507 B

($sec, $min, $hour, $dom, $mon,$year, $wday, $yday, $isdst) = gmtime($time);
@months = ("January", "February",
"March", "April", "May",
"June", "July", "August",
"September", "October",
"November", "December");
@week = ("Sunday", "Monday", "Tuesday",
"Wednesday", "Thursday",
"Friday", "Saturday");
$year += 1900;
printf("Date is: %s, %d-%s-%d\n",
$week[$wday], $dom, $months[$mon],