Revision [16884]
This is an old revision of DateWithOffset made by JasonHuebel on 2007-05-31 23:27:00.
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