aboutsummaryrefslogtreecommitdiffstats
path: root/functions/date_functions.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2009-01-07 20:20:03 +0000
committerJim Hu <jimhu@users.sourceforge.net>2009-01-07 20:20:03 +0000
commit73d433f17d349cb2a3c8084d4ac5cecf650afb04 (patch)
tree0650f3e780f4a21de2c085827e51db3659ff8f47 /functions/date_functions.php
parent2434deaf0d0dc46a0deebd523f5bb2c3204bbc9a (diff)
downloadphpicalendar-73d433f17d349cb2a3c8084d4ac5cecf650afb04.tar.gz
phpicalendar-73d433f17d349cb2a3c8084d4ac5cecf650afb04.tar.bz2
phpicalendar-73d433f17d349cb2a3c8084d4ac5cecf650afb04.zip
timeformat serialization needed urlencode/decode?
Diffstat (limited to 'functions/date_functions.php')
-rw-r--r--functions/date_functions.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/functions/date_functions.php b/functions/date_functions.php
index 931e613..74e428e 100644
--- a/functions/date_functions.php
+++ b/functions/date_functions.php
@@ -98,6 +98,7 @@ function localizeDate($format, $timestamp) {
$month = date("n", $timestamp)-1;
$day = date("j", $timestamp);
$dayofweek = date("w", $timestamp);
+ $weeknumber = date("W", $timestamp);
$replacements = array(
'%Y' => $year,
'%e' => $day,
@@ -105,6 +106,7 @@ function localizeDate($format, $timestamp) {
'%b' => $monthsofyearshort_lang[$month],
'%A' => $daysofweek_lang[$dayofweek],
'%a' => $daysofweekshort_lang[$dayofweek],
+ '%W' => $weeknumber,
'%d' => sprintf("%02d", $day)
);
$date = str_replace(array_keys($replacements), array_values($replacements), $format);

© 2014-2024 Faster IT GmbH | imprint | privacy policy