Revision [10538]
This is an old revision of DateWithOffset made by JasonHuebel on 2005-08-07 20:44:41.
Date With Offset Action
This action displays the current date, with an optional time offset.
<?php
/*
date action
Displays the current date (with optional time offset)
Syntax: {{date}} or {{date offset="-5"}}
*/
$offset = trim($vars['offset']);
if ($offset=="") {
echo date("M d, Y", time());
} else {
echo date("M d, Y", time() + (60*60*$offset));
}
?>
/*
date action
Displays the current date (with optional time offset)
Syntax: {{date}} or {{date offset="-5"}}
*/
$offset = trim($vars['offset']);
if ($offset=="") {
echo date("M d, Y", time());
} else {
echo date("M d, Y", time() + (60*60*$offset));
}
?>
See Also:* TimeWithOffset
CategoryUserContributions