You are here

function date_load_library in Date 5

Date wrapper functions

will use external library if available, otherwise native php date functions currently set up for adodb date library, could be extended to include other date libraries

Parameters

$array - array parameters are in the format created by getdate(): prefix functions with @ to surpress ugly windows error messages for dates outside valid range

10 calls to date_load_library()
date_adj_zone in ./date.inc
These functions will remove server timezone adjustment from timestamps needed because some php date functions automatically adjust to server zone but the date object uses raw values for date parts and does manual timezone adj needed for ability to…
date_date in ./date.inc
date_getdate in ./date.inc
date_gmadj_zone in ./date.inc
date_gmdate in ./date.inc

... See full list

File

./date.inc, line 36
Date/time API functions

Code

function date_load_library() {
  if (DATE_LIBRARY == 'ADODB' && !function_exists('adodb_date_test_date') && file_exists(DATE_LIBRARY_FILE)) {
    include_once DATE_LIBRARY_FILE;
  }
}