Extra functionality for PHP's DateTime class
datetime is a datetime string in sql datetime format (YYYY-mm-dd HH:mm:ss) Default null timestamp is a unix timestamp integer Default null If no datetime or timestamp is given then the date and time of the server at the instance of the object will be used. If $GLOBALS['dbh'] holds a valid database handle and a defined var of USE_DATABASE_TME is set to 'True' then the database time of 'now()' will be used. working_days is an array of numbers:
holidays is an array of datetime strings in sql datetime format (YYYY-mm-dd HH:mm:ss) Default null |
Use working_days and holidays to change the respective arrays set in the construct. Both default null. returns is a string to format the datetime returned. Default null. if returns is set then method will return a datetime string of format given |