Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403]

ADOdb Date Library.

Copyright: 2003-2013 John Lim
Copyright: 2014 Damien Regad, Mark Newnham and the ADOdb community
License: BSD-3-Clause
License: LGPL-2.1-or-later
File Size: 1480 lines (44 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 22 functions


Functions that are not part of a class:

adodb_date_test_date($y1,$m,$d=13)   X-Ref
No description

adodb_date_test_strftime($fmt)   X-Ref
No description

adodb_date_test()   X-Ref
No description

adodb_time()   X-Ref
No description

adodb_dow($year, $month, $day)   X-Ref
No description

_adodb_is_leap_year($year)   X-Ref
No description

adodb_is_leap_year($year)   X-Ref
No description

adodb_year_digit_check($y)   X-Ref
No description

adodb_get_gmt_diff_ts($ts)   X-Ref
No description

adodb_get_gmt_diff($y,$m,$d)   X-Ref
No description

adodb_getdate($d=false,$fast=false)   X-Ref
No description

adodb_validdate($y,$m,$d)   X-Ref
No description

_adodb_getdate($origd=false,$fast=false,$is_gmt=false)   X-Ref
No description

adodb_tz_offset($gmt, $ignored=true)   X-Ref
Compute timezone offset.

param: int  $gmt     Time offset from GMT, in seconds
param: bool $ignored Param leftover from removed PHP4-compatibility code
return: string

adodb_gmdate($fmt,$d=false)   X-Ref
No description

adodb_date2($fmt, $d=false, $is_gmt=false)   X-Ref
No description

adodb_date($fmt,$d=false,$is_gmt=false)   X-Ref
No description

adodb_gmmktime($hr,$min,$sec,$mon=false,$day=false,$year=false,$is_dst=false)   X-Ref
No description

adodb_mktime($hr,$min,$sec,$mon=false,$day=false,$year=false,$is_dst=false,$is_gmt=false)   X-Ref
No description

adodb_gmstrftime($fmt, $ts=false)   X-Ref
No description

adodb_strftime($fmt, $ts=false,$is_gmt=false)   X-Ref
No description

adodb_last_date_status()   X-Ref
Returns the status of the last date calculation and whether it exceeds
the limit of ADODB_FUTURE_DATE_CUTOFF_YEARS

return: boolean