rah_time

Published under current TXP projects

The plugin, rah_time, returns the current time and/or a specific time selected with valid GNU date input format. The suplied date format can be any valid PHP’s strftime() supported string format.

Download rah_time v0.1

Image: rah_time

Image: rah_time

List of features

Requirements

Minimum requirements:

Recommended:

Installation and usage

The general behavior stands: paste plugin code to the plugin installer textarea and run the automatic setup. Then just activate the plugin and you are ready to use new tags that plugin includes like others.

For usage, basically just use <txp:rah_time />-tag to return the date time.

Attributes

The tag is <txp:rah_time /> and attributes for it follow.

format
Date format which is used to return time. Any valid strftime() date format.
Example: format="%B %Y %d" Default: "%Y-%d-%m"

time
Time that is returned. Any valid GNU date input format. By default the tag returns current time.
Example: time="+1 day" Default: "now"

Examples

Example #1

<txp:rah_time format="%Y %b %d" />

Example #2

<txp:rah_time format="%Y %b %d" time="+10 days" />

Example #3

<txp:rah_time format="%Y %b %d" time="last Monday" />