# DatePart Class Reference
[Dynamic query builder]

Inheritance diagram for DatePart:
[legend]

List of all members.

## Public Attributes

const | CENTURY = 1
const | DAY = 2
const | DECADE = 3
const | DOW = 4
const | DOY = 5
const | EPOCH = 6
const | HOUR = 7
const | MICROSECONDS = 8
const | MILLENIUM = 9
const | MILLISECONDS = 10
const | MINUTE = 11
const | MONTH = 12
const | QUARTER = 13
const | SECOND = 14
const | TIMEZONE = 15
const | TIMEZONE_HOUR = 16
const | TIMEZONE_MINUTE = 17
const | WEEK = 18
const | YEAR = 19

## Protected Attributes

| $names

## Detailed Description

See also:
  http://www.postgresql.org/docs/current/interactive/functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT

Definition at line 17 of file DatePart.class.php.

## Member Data Documentation

DatePart::$names`[protected]`

Initial value:

     array(
                self::CENTURY           => 'CENTURY',
                self::DAY               => 'DAY',
                self::DECADE            => 'DECADE',
                self::DOW               => 'DOW',
                self::DOY               => 'DOY',
                self::EPOCH             => 'EPOCH',
                self::HOUR              => 'HOUR',
                self::MICROSECONDS      => 'MICROSECONDS',
                self::MILLENIUM         => 'MILLENIUM',
                self::MILLISECONDS      => 'MILLISECONDS',
                self::MINUTE            => 'MINUTE',
                self::MONTH             => 'MONTH',
                self::QUARTER           => 'QUARTER',
                self::SECOND            => 'SECOND',
                self::TIMEZONE          => 'TIMEZONE',
                self::TIMEZONE_HOUR     => 'TIMEZONE_HOUR',
                self::TIMEZONE_MINUTE   => 'TIMEZONE_MINUTE',
                self::WEEK              => 'WEEK',
                self::YEAR              => 'YEAR'
            )

Reimplemented from Enumeration.

Definition at line 39 of file DatePart.class.php.

const DatePart::CENTURY = 1

Definition at line 19 of file DatePart.class.php.

const DatePart::DAY = 2

Definition at line 20 of file DatePart.class.php.

const DatePart::DECADE = 3

Definition at line 21 of file DatePart.class.php.

const DatePart::DOW = 4

Definition at line 22 of file DatePart.class.php.

const DatePart::DOY = 5

Definition at line 23 of file DatePart.class.php.

const DatePart::EPOCH = 6

Definition at line 24 of file DatePart.class.php.

const DatePart::HOUR = 7

Definition at line 25 of file DatePart.class.php.

const DatePart::MICROSECONDS = 8

Definition at line 26 of file DatePart.class.php.

const DatePart::MILLENIUM = 9

Definition at line 27 of file DatePart.class.php.

const DatePart::MILLISECONDS = 10

Definition at line 28 of file DatePart.class.php.

const DatePart::MINUTE = 11

Definition at line 29 of file DatePart.class.php.

const DatePart::MONTH = 12

Definition at line 30 of file DatePart.class.php.

const DatePart::QUARTER = 13

Definition at line 31 of file DatePart.class.php.

const DatePart::SECOND = 14

Definition at line 32 of file DatePart.class.php.

const DatePart::TIMEZONE = 15

Definition at line 33 of file DatePart.class.php.

const DatePart::TIMEZONE_HOUR = 16

Definition at line 34 of file DatePart.class.php.

const DatePart::TIMEZONE_MINUTE = 17

Definition at line 35 of file DatePart.class.php.

const DatePart::WEEK = 18

Definition at line 36 of file DatePart.class.php.

const DatePart::YEAR = 19

Definition at line 37 of file DatePart.class.php.

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

- core/OSQL/DatePart.class.php