Class ::xowiki::includelet::creation-date

::xowiki::includelet::creation-date[i] create ... \
           [ -__decoration (default "none") ] \
           [ -parameter_declaration (default " {-source ""} {-format "%m-%d-%Y"} ") ]

Include the creation date of the current or specified page in the provided format.
Defined in /var/www/openacs.org/packages/xowiki/tcl/includelet-procs.tcl

Class Relations

  • class: ::xowiki::IncludeletClass[i]
  • superclass: ::xowiki::Includelet[i]
::xowiki::IncludeletClass create ::xowiki::includelet::creation-date \
     -superclass ::xowiki::Includelet

Methods (to be applied on instances)

  • __decoration (setter)

  • parameter_declaration (setter)

  • render (scripted)

    :get_parameters
    set page [:resolve_page_name $source]
    set time [$page set creation_date]
    regexp {^([^.]+)[.]} $time _ time
    return [lc_time_fmt [clock format [clock scan $time] -format "%Y-%m-%d %H:%M:%S"$format [:locale]]
    #return [clock format [clock scan $time] -format $format]