Knowledgeroot Date class

Helper class to handle dates with timezone

author fhabermann

 Methods

constructor for datetime class

__construct(object $date) 

Parameters

$date

object

OPTIONAL DateTime object

__tostring()

__tostring() 

return date in given timezone

getDate($timezone) 

Parameters

$timezone

return date in UTC timezone

getDbDate() 

return date in system timezone

getSystemDate() 

return date in user timezone

getUserDate() 

 Properties

 

$date