You are here

constant DATE_CALC_FORMAT in Date 6.2

Same name and namespace in other branches
  1. 5.2 date_php4/date_php4_calc.inc \DATE_CALC_FORMAT
  2. 6 date_php4/date_php4_calc.inc \DATE_CALC_FORMAT

Calculates and manipulates dates with no reliance on 32-bit system timestamps, to work on dates before 1970 and after 2038.

This file must be included whenever these functions are used, it is not automatically available.

The functions below were derived from code obtained from http://pear.php.net/package/Date/Calc.php, licensed as follows:

Copyright (c) 1999-2006 Monte Ohrt, Pierre-Alain Joye, Daniel Convissor All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted under the terms of the BSD License.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

File

date_php4/date_php4_calc.inc, line 31

Code

define('DATE_CALC_FORMAT', '%Y-%m-%d');