PI: daydiff
Purpose is to produce difference between two dates
<?_wxt daydiff firstday="" lastday=""?>
The parameters are:
firstday (optional) | A date in the form: yyyy-mm-dd. If the year-part is set to xxxx, the date is considered a repeating date, repeated each year. |
lastday (optional) | A date in the form: yyyy-mm-dd. If the year-part is set to xxxx, the date is considered a repeating date, repeated each year. |
absolute (optional) | The PI will allways return a positive integer, absolute value. |
If one of the day-attributes is unspesified, the date is set to the date of building. At least one of the day-attributes must be set.
A few examples:
<?_wxt daydiff firstday="xxxx-12-24"?> <?_wxt daydiff lastday="xxxx-12-24"?>
will in trurn produce the days since christmas and the days until christmas.