Overview

Namespaces

  • Jity
    • HomepageBundle
      • Controller
      • DataFixtures
        • ORM
      • DependencyInjection
        • Compiler
        • Service
          • Controller
      • Doctrine
        • Extension
          • DBAL
            • Types
      • Entity
      • EventListener
      • Form
        • Extension
      • Tests
        • Controller
      • Twig
        • Extension
  • PHP

Classes

  • IntlDateTime
  • IntlDateTimeType
  • Overview
  • Namespace
  • Class
  • Tree

Class IntlDateTime

IntlDateTime

DateTime Implementation which use the Intl Extension for formatting.

DateTime
Extended by Jity\HomepageBundle\Doctrine\Extension\DBAL\Types\IntlDateTime
Namespace: Jity\HomepageBundle\Doctrine\Extension\DBAL\Types
Author: Hermann Mayer <hermann.mayer92@gmail.com>
Located at Jity/HomepageBundle/Doctrine/Extension/DBAL/Types/IntlDateTime.php
Methods summary
public static Jity\HomepageBundle\Doctrine\Extension\DBAL\Types\IntlDateTime
# createFromFormat( string $format, string $time, DateTimeZone $timezone = null )

createFromFormat

createFromFormat

Returns new DateTime object formatted according to the specified format.

Parameters

$format
string
$format The format that the passed in string should be in
$time
string
$time String representing the time
$timezone
DateTimeZone
$timezone A DateTimeZone object representing the desired time zone

Returns

Jity\HomepageBundle\Doctrine\Extension\DBAL\Types\IntlDateTime

Overrides

DateTime::createFromFormat()
public string
# format( string $pattern, string $locale = null )

format

format

Returns date formatted according to given format.

Parameters

$pattern
string
$pattern Format accepted by date()
$locale
string
$locale Locale to use when formatting

Returns

string

Overrides

DateTime::format()
Methods inherited from DateTime
__construct(), __set_state(), __wakeup(), add(), diff(), getLastErrors(), getOffset(), getTimestamp(), getTimezone(), modify(), setDate(), setISODate(), setTime(), setTimestamp(), setTimezone(), sub()
Constants inherited from DateTime
ATOM, COOKIE, ISO8601, RFC1036, RFC1123, RFC2822, RFC3339, RFC822, RFC850, RSS, W3C
API documentation generated by ApiGen 2.8.0