lib/TWiki/Contrib/JSCalendarContrib.pm
changeset 1 e2915a7cbdfa
parent 0 414e01d06fd5
child 2 7bc60a767fa4
     1.1 --- a/lib/TWiki/Contrib/JSCalendarContrib.pm	Sat Jan 26 15:50:53 2008 +0100
     1.2 +++ b/lib/TWiki/Contrib/JSCalendarContrib.pm	Mon Aug 11 20:30:19 2008 +0200
     1.3 @@ -17,8 +17,8 @@
     1.4  
     1.5  use vars qw( $VERSION $RELEASE $SHORTDESCRIPTION );
     1.6  
     1.7 -$VERSION = '$Rev: 16236 (22 Jan 2008) $';
     1.8 -$RELEASE = 'TWiki-4';
     1.9 +$VERSION = '$Rev: 17304 (04 Aug 2008) $';
    1.10 +$RELEASE = '03 Aug 2008';
    1.11  $SHORTDESCRIPTION = "[[http://dynarch.com/mishoo/calendar.epl][Mishoo JSCalendar]], packaged for use by plugins, skins and add-ons";
    1.12  
    1.13  # Max width of different mishoo format components
    1.14 @@ -145,7 +145,40 @@
    1.15    ....
    1.16  }
    1.17  </verbatim>
    1.18 -The first parameter to =showCalendar= is the id of the textfield, and the second parameter is the . See the Mishoo documentation for details of the '$e %B %Y' parameter.
    1.19 +The first parameter to =showCalendar= is the id of the textfield, and the second parameter is the date format. Default format is '%e %B %Y'.
    1.20 +
    1.21 +All available date specifiers:
    1.22 +<verbatim>
    1.23 +%a - abbreviated weekday name 
    1.24 +%A - full weekday name 
    1.25 +%b - abbreviated month name 
    1.26 +%B - full month name 
    1.27 +%C - century number 
    1.28 +%d - the day of the month ( 00 .. 31 ) 
    1.29 +%e - the day of the month ( 0 .. 31 ) 
    1.30 +%H - hour ( 00 .. 23 ) 
    1.31 +%I - hour ( 01 .. 12 ) 
    1.32 +%j - day of the year ( 000 .. 366 ) 
    1.33 +%k - hour ( 0 .. 23 ) 
    1.34 +%l - hour ( 1 .. 12 ) 
    1.35 +%m - month ( 01 .. 12 ) 
    1.36 +%M - minute ( 00 .. 59 ) 
    1.37 +%n - a newline character 
    1.38 +%p - "PM" or "AM"
    1.39 +%P - "pm" or "am"
    1.40 +%S - second ( 00 .. 59 ) 
    1.41 +%s - number of seconds since Epoch (since Jan 01 1970 00:00:00 UTC) 
    1.42 +%t - a tab character 
    1.43 +%U, %W, %V - the week number
    1.44 +   The week 01 is the week that has the Thursday in the current year,
    1.45 +   which is equivalent to the week that contains the fourth day of January. 
    1.46 +   Weeks start on Monday.
    1.47 +%u - the day of the week ( 1 .. 7, 1 = MON ) 
    1.48 +%w - the day of the week ( 0 .. 6, 0 = SUN ) 
    1.49 +%y - year without the century ( 00 .. 99 ) 
    1.50 +%Y - year including the century ( ex. 1979 ) 
    1.51 +%% - a literal % character 
    1.52 +</verbatim>
    1.53  
    1.54  =addHEAD= can be called from =commonTagsHandler= for adding the header to all pages, or from =beforeEditHandler= just for edit pages etc.
    1.55