Vine Type Content Management with Standards in Mind

25 Mar 2006

$_commenttime

variables
  • $_commenttime

The following variables added in Vine Type 1.5

  • $_commenttime_yearnum
  • $_commenttime_yearnum_short
  • $_commenttime_monthnum
  • $_commenttime_monthnum_short
  • $_commenttime_monthname
  • $_commenttime_monthname_short
  • $_commenttime_wkday
  • $_commenttime_wkday_short
  • $_commenttime_daynum
  • $_commenttime_daynum_short
  • $_commenttime_time
  • $_commenttime_time_24
applicable sections
description

Place the $_commenttime variable at the location in the comment element of your template where you want the timestamp of when the comment was created and posted to your website.

The formatting of this timestamp is controlled by the $time_format entry in your vinetype.config file.

notes

The other twelve variables are just subsets of the $_commenttime time. They allow you to place different parts of the date separately, allowing for more creative ways to display the date. Examples shown below

also see
examples

The following are variables and values generated for an example date and time 3:09pm Saturday April 8, 2006

    2006 $_commenttime_yearnum
      06 $_commenttime_yearnum_short
      04 $_commenttime_monthnum
       4 $_commenttime_monthnum_short
   April $_commenttime_monthname
     Apr $_commenttime_monthname_short
Saturday $_commenttime_wkday
     Sat $_commenttime_wkday_short
      08 $_commenttime_daynum
       8 $_commenttime_daynum_short
 3:09 pm $_commenttime_time
   15:09 $_commenttime_time_24
  • Weekday names are shown in English since this example is for $culture of en-us. Changing the culture value will change the weekday names and their abbreviations to that culture's language.

download

Visit the Download Area to test drive the standard in standards compliance.

upgrade

Add professional features to your Vine Type site by purchasing a Vine Type Pro license.

feedback

Discuss Vine Type or pose questions at the official Vine Type Forum hosted by ASP Advice.

about us

Learn more about this site and the features it is demonstrating.

© 2001-2017 vine branches — website powered by vine type