Extends DateTimePlus().
This class extends the basic component and adds in Drupal-specific handling, like translation of the format() method.
Expanded class hierarchy of DrupalDateTime
Drupal/Component/Datetime/DateTimePlus.php
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DateTimePlus:: |
protected | property | The value of the calendar setting passed to the constructor. | |
DateTimePlus:: |
protected | property | The value of the country code passed to the constructor. | |
DateTimePlus:: |
protected static | property | An array of possible date parts. | |
DateTimePlus:: |
protected | property | An array of errors encountered when creating this date. | |
DateTimePlus:: |
protected | property | The prepared format, if provided. | |
DateTimePlus:: |
protected | property | The value of the format passed to the constructor. | |
DateTimePlus:: |
protected | property | The prepared time, without timezone, for this date. | |
DateTimePlus:: |
protected | property | The value of the time value passed to the constructor. | |
DateTimePlus:: |
protected | property | The prepared timezone object used to construct this date. | |
DateTimePlus:: |
protected | property | The value of the timezone passed to the constructor. | |
DateTimePlus:: |
protected | property | The value of the language code passed to the constructor. | |
DateTimePlus:: |
public static | function | Creates an ISO date from an array of values. | |
DateTimePlus:: |
constant | |||
DateTimePlus:: |
public | function | Tests whether the IntlDateFormatter can be used. | |
DateTimePlus:: |
public static | function | Checks that arrays of date parts will create a valid date. | |
DateTimePlus:: |
public | function | Examines getLastErrors() to see what errors to report. | |
DateTimePlus:: |
protected | function | Creates a date when none of the other methods are appropriate. | |
DateTimePlus:: |
protected | function | Creates a date object from an array of date parts. | |
DateTimePlus:: |
protected | function | Creates a date object from an input format. | |
DateTimePlus:: |
protected | function | Creates a date object from an input date object. | |
DateTimePlus:: |
protected | function | Creates a date object from timestamp input. | |
DateTimePlus:: |
public static | function | Pads date parts with zeros. | |
DateTimePlus:: |
constant | |||
DateTimePlus:: |
public | function | Retrieves error messages. | |
DateTimePlus:: |
public | function | Detects if there were errors in the processing of this date. | |
DateTimePlus:: |
public | function | Checks if input is an array of date parts. | |
DateTimePlus:: |
public | function | Checks if input is a string with an expected format. | |
DateTimePlus:: |
public | function | Checks whether input is a DateTime object. | |
DateTimePlus:: |
public | function | Checks whether input time seems to be a timestamp. | |
DateTimePlus:: |
constant | |||
DateTimePlus:: |
constant | |||
DateTimePlus:: |
public static | function | Creates a complete array from a possibly incomplete array of date parts. | |
DateTimePlus:: |
protected | function | Prepares the input format value. | |
DateTimePlus:: |
protected | function | Prepares the input time value. | |
DateTimePlus:: |
public | function | Implements __toString() for dates. | |
DrupalDateTime:: |
public | function |
Overrides format(). Overrides DateTimePlus:: |
|
DrupalDateTime:: |
protected | function |
Overrides prepareTimezone(). Overrides DateTimePlus:: |
|
DrupalDateTime:: |
public | function |
Constructs a date object. Overrides DateTimePlus:: |