You are here: System » VarTIMESHOWSTORE

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:Sorted descending Default:
    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
    "format" Format of the displayed date. The tokens are specified Time Format Tokens below format defined by the {DefaultDateFormat} setting in configure
  • Example: %TIMESHOWSTORE{"$year-$mo-$day date="23 Nov 2010" store="$myvar"}% displays 2010-11-23 and stored the date in myvar.

Sitemap

This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback