CWIS Developer Documentation

- Home
- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Public Attributes | List of all members
Date Class Reference

## Public Member Functions
| __construct ($BeginDate, $EndDate=NULL, $Precision=NULL, $DebugLevel=0)
| Formatted ()
| PFormatted ($Format, $ReturnEndDate=FALSE)
| FormattedForSql ($ReturnEndDate=FALSE)
| FormattedISO8601 ()
| UseUTC ()
| UseLocalTime ()
| BeginDate ()
| EndDate ()
| Precision ($NewPrecision=NULL)
| SqlCondition ($FieldName, $EndFieldName=NULL, $Operator="=")
| FormattedPrecision ($Precision=NULL)

## Public Attributes
| $BeginDay
| $BeginMonth
| $BeginYear
| $EndDay
| $EndMonth
| $EndYear
| $Precision
| $DebugLevel

## Detailed Description

Definition at line 18 of file Date.php.

## Constructor & Destructor Documentation

Date::__construct | ( |  | $BeginDate,
|  |  | $EndDate = `NULL`,
|  |  | $Precision = `NULL`,
|  |  | $DebugLevel = `0`
| ) |  |

Definition at line 23 of file Date.php.

References $BeginDay, $BeginMonth, $BeginYear, $DebugLevel, $EndDay, $EndMonth, $EndYear, $Precision, DATEPRE_BEGINDAY, DATEPRE_BEGINMONTH, DATEPRE_BEGINYEAR, DATEPRE_CONTINUOUS, DATEPRE_COPYRIGHT, DATEPRE_ENDDAY, DATEPRE_ENDMONTH, DATEPRE_ENDYEAR, DATEPRE_INFERRED, FormattedPrecision(), and Precision().

## Member Function Documentation

Date::BeginDate | ( |  | ) |

Definition at line 494 of file Date.php.

References DATEPRE_BEGINMONTH, DATEPRE_BEGINYEAR, and Precision().

Date::EndDate | ( |  | ) |

Definition at line 526 of file Date.php.

References DATEPRE_ENDMONTH, DATEPRE_ENDYEAR, and Precision().

Date::Formatted | ( |  | ) |

Definition at line 326 of file Date.php.

References $BeginYear, $EndYear, DATEPRE_BEGINDAY, DATEPRE_BEGINMONTH, DATEPRE_BEGINYEAR, DATEPRE_CONTINUOUS, DATEPRE_COPYRIGHT, DATEPRE_ENDDAY, DATEPRE_ENDMONTH, DATEPRE_ENDYEAR, DATEPRE_INFERRED, DATEPRE_SEPARATE, and Precision().

Date::FormattedForSql | ( |  | $ReturnEndDate = `FALSE` | ) |

Definition at line 429 of file Date.php.

References PFormatted().

Date::FormattedISO8601 | ( |  | ) |

Definition at line 435 of file Date.php.

References DATEPRE_BEGINDAY, DATEPRE_BEGINMONTH, DATEPRE_BEGINYEAR, and Precision().

Date::FormattedPrecision | ( |  | $Precision = `NULL` | ) |

Definition at line 694 of file Date.php.

References $Precision, DATEPRE_BEGINDAY, DATEPRE_BEGINDECADE, DATEPRE_BEGINMONTH, DATEPRE_BEGINYEAR, DATEPRE_CONTINUOUS, DATEPRE_COPYRIGHT, DATEPRE_ENDDAY, DATEPRE_ENDDECADE, DATEPRE_ENDMONTH, DATEPRE_ENDYEAR, DATEPRE_INFERRED, and DATEPRE_SEPARATE.

Referenced by __construct().

Here is the caller graph for this function:

Date::PFormatted | ( |  | $Format,
|  |  | $ReturnEndDate = `FALSE`
| ) |  |

Definition at line 411 of file Date.php.

References DATEPRE_BEGINDAY, DATEPRE_BEGINMONTH, DATEPRE_BEGINYEAR, DATEPRE_ENDDAY, DATEPRE_ENDMONTH, DATEPRE_ENDYEAR, and Precision().

Referenced by FormattedForSql().

Here is the caller graph for this function:

Date::Precision | ( |  | $NewPrecision = `NULL` | ) |

Definition at line 560 of file Date.php.

References $Precision.

Referenced by __construct(), BeginDate(), EndDate(), Formatted(), FormattedISO8601(), PFormatted(), and SqlCondition().

Here is the caller graph for this function:

Date::SqlCondition | ( |  | $FieldName,
|  |  | $EndFieldName = `NULL`,
|  |  | $Operator = `"="`
| ) |  |

Definition at line 567 of file Date.php.

References $BeginDay, $BeginMonth, $BeginYear, $EndDay, $EndMonth, $EndYear, DATEPRE_BEGINDAY, DATEPRE_BEGINMONTH, DATEPRE_ENDDAY, DATEPRE_ENDMONTH, DATEPRE_ENDYEAR, and Precision().

Date::UseLocalTime | ( |  | ) |

Definition at line 480 of file Date.php.

Date::UseUTC | ( |  | ) |

Definition at line 466 of file Date.php.

## Member Data Documentation

Date::$BeginDay

Definition at line 717 of file Date.php.

Referenced by __construct(), and SqlCondition().

Date::$BeginMonth

Definition at line 718 of file Date.php.

Referenced by __construct(), and SqlCondition().

Date::$BeginYear

Definition at line 719 of file Date.php.

Referenced by __construct(), Formatted(), and SqlCondition().

Date::$DebugLevel

Definition at line 724 of file Date.php.

Referenced by __construct().

Date::$EndDay

Definition at line 720 of file Date.php.

Referenced by __construct(), and SqlCondition().

Date::$EndMonth

Definition at line 721 of file Date.php.

Referenced by __construct(), and SqlCondition().

Date::$EndYear

Definition at line 722 of file Date.php.

Referenced by __construct(), Formatted(), and SqlCondition().

Date::$Precision

Definition at line 723 of file Date.php.

Referenced by __construct(), FormattedPrecision(), and Precision().

The documentation for this class was generated from the following file:

- lib/AxisPHP/Date.php