From 463c259c14c4a14ded29866e41c992de511e80e4 Mon Sep 17 00:00:00 2001 From: Jeff Teunissen Date: Wed, 26 Apr 2000 00:26:03 +0000 Subject: [PATCH] Updated PHP lib with date information... --- lib/date.php | 38 ++++++++++++++++++++++++++++++++++++++ parts/library.php | 5 +++-- 2 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 lib/date.php diff --git a/lib/date.php b/lib/date.php new file mode 100644 index 0000000..af6f9b9 --- /dev/null +++ b/lib/date.php @@ -0,0 +1,38 @@ +'Jan', 2=>'Feb', 3=>'Mar', 4=>'Apr', + 5=>'May', 6=>'Jun', 7=>'Jul', 8=>'Aug', + 9=>'Sep', 10=>'Oct', 11=>'Nov', 12=>'Dec'); + + function fileParseDate($date) { + global $shortMonths; + + return substr($date, 3) . ' ' . $shortMonths[substr($date, 1, 2)]; + } +?> diff --git a/parts/library.php b/parts/library.php index 4b4e4c1..30d27ae 100644 --- a/parts/library.php +++ b/parts/library.php @@ -1,13 +1,14 @@