New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists

TIMESHOWSTORE{...} -- show formatted time and store it

  • Displays a formatted date and time. The time is either given as a string or my a named TimeCalcPlugin storage variable. The resulting time can be stored in a storage variable.
  • Syntax: %TIMESHOWSTORE{"format" time="time|$variable" store="name"}%
  • Supported parameters:
    Parameter: Description: Default:
    "format" Format of the displayed date. The tokens are specified Time Format Tokens below format defined by the {DefaultDateFormat} setting in configure
    time="time" time can be in any format defined in System/TimeSpecifications (time is ignorred), or it can be the name of a TimeCalcPlugin storage name prefixed by a '$'. E.g. $myvar time now
    delta="relative time" The plugin accepts any relative time that the CPAN library Time::ParseDate can handle. E.g. "-3 months" , "last Monday", "+2 days", "next Wednesday", "2 weeks" 0
    store="variablename" Name of a variable in which the calculated date is stored. This variable can be used in another TimeCalcPlugin macro as an input date none
  • Example: %TIMESHOWSTORE{"$year-$mo-$day date="23 Nov 2010" store="$myvar"}% displays 2010-11-23 and stored the date in myvar.
Topic revision: r6 - 16 Aug 2015, KennethLavrsen - This page was cached on 19 Mar 2018 - 17:18.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License