protected function getFormatedDateTime( Date $date = null, Time $time = null ) {
		$timestamp = null;
		if($date && $time) {
			$timestamp = strtotime($date . ' ' . $time);
		}
		else {
			$timestamp = time();
		}
		return gmdate('Ymd\THis\Z', $timestamp);
	}
protected function getFormatedDateTime( Date $date = null, Time $time = null ) {
		$timestamp = null;
		if($date && $time) {
			$timestamp = strtotime($date . ' ' . $time);
		}
		else {
			$timestamp = time();
		}
		return gmdate('Ymd\THis\Z', $timestamp);
	}
protected function getFormatedDateTime ( Date $ date = null , Time $ time = null ) { $ timestamp = null ; if ( $ date && $ time ) { $ timestamp = strtotime ( $ date . ' ' . $ time ) ; } else { $ timestamp = time ( ) ; } return gmdate ( 'Ymd\THis\Z' , $ timestamp ) ; }
Get an ical formatted datetime string.

@param Date $date
@param Time $time
@return string

@todo Add timezone support - note atm there is no timezone support in either Date or Time.

@author Alex Hayes <alex.hayes@dimension27.com>
Get an ical formatted datetime string .