3 # Print the modification date of $1 `nicely'.
5 # Don't want foreign dates.
9 LC_TIME=C; export LC_TIME
10 LC_CTYPE=C; export LC_CTYPE
14 if ls -L /dev/null 1>/dev/null 2>&1; then ls -L -l $1; else ls -l $1; fi
17 full["Jan"] = "January"; number["Jan"] = 1;
18 full["Feb"] = "February"; number["Feb"] = 2;
19 full["Mar"] = "March"; number["Mar"] = 3;
20 full["Apr"] = "April"; number["Apr"] = 4;
21 full["May"] = "May"; number["May"] = 5;
22 full["Jun"] = "June"; number["Jun"] = 6;
23 full["Jul"] = "July"; number["Jul"] = 7;
24 full["Aug"] = "August"; number["Aug"] = 8;
25 full["Sep"] = "September"; number["Sep"] = 9;
26 full["Oct"] = "October"; number["Oct"] = 10;
27 full["Nov"] = "November"; number["Nov"] = 11;
28 full["Dec"] = "December"; number["Dec"] = 12;
38 if (number[$(NF-3)] > number[month])
43 print $(NF-2), full[$(NF-3)], year