Add a RenderGMT() method to iCalDate.

This commit is contained in:
Andrew McMillan 2009-03-31 22:18:10 +13:00
parent 2706174b8d
commit 1fba1ff769

View File

@ -173,6 +173,14 @@ class iCalDate {
}
/**
* Render the date as GMT
*/
function RenderGMT( $fmt = 'Ymd\THis\Z' ) {
return gmdate( $fmt, $this->_epoch );
}
/**
* No of days in a month 1(Jan) - 12(Dec)
*/