Autodoc
  • Namespace
  • Class
  • Tree

Namespaces

  • BlueTihi
    • Context
  • Brickrouge
    • Element
      • Nodes
    • Renderer
    • Widget
  • ICanBoogie
    • ActiveRecord
    • AutoConfig
    • CLDR
    • Composer
    • Core
    • Event
    • Exception
    • HTTP
      • Dispatcher
      • Request
    • I18n
      • Translator
    • Mailer
    • Modules
      • Taxonomy
        • Support
      • Thumbnailer
        • Versions
    • Object
    • Operation
      • Dispatcher
    • Prototype
    • Routes
    • Routing
      • Dispatcher
    • Session
  • Icybee
    • ActiveRecord
      • Model
    • ConfigOperation
    • Document
    • EditBlock
    • Element
      • ActionbarContextual
      • ActionbarSearch
      • ActionbarToolbar
    • FormBlock
    • Installer
    • ManageBlock
    • Modules
      • Articles
      • Cache
        • Collection
        • ManageBlock
      • Comments
        • ManageBlock
      • Contents
        • ManageBlock
      • Dashboard
      • Editor
        • Collection
      • Files
        • File
        • ManageBlock
      • Forms
        • Form
        • ManageBlock
      • I18n
      • Images
        • ManageBlock
      • Members
      • Modules
        • ManageBlock
      • Nodes
        • ManageBlock
        • Module
      • Pages
        • BreadcrumbElement
        • LanguagesElement
        • ManageBlock
        • NavigationBranchElement
        • NavigationElement
        • Page
        • PageController
      • Registry
      • Search
      • Seo
      • Sites
        • ManageBlock
      • Taxonomy
        • Terms
          • ManageBlock
        • Vocabulary
          • ManageBlock
      • Users
        • ManageBlock
        • NonceLogin
        • Roles
      • Views
        • ActiveRecordProvider
        • Collection
        • View
    • Operation
      • ActiveRecord
      • Constructor
      • Module
      • Widget
    • Rendering
  • None
  • Patron
  • PHP

Classes

  • Calendar
  • CalendarCollection
  • DateFormatter
  • DateTimeFormatter
  • FileCache
  • Locale
  • LocaleCollection
  • LocalizedDateTime
  • LocalizedObject
  • Provider
  • Repository
  • Retriever
  • RunTimeCache
  • Supplemental
  • TimeFormatter

Interfaces

  • Cache

Exceptions

  • ResourceNotFound

Class LocalizedDateTime

A localized date time.

<?php

namespace ICanBoogie\CLDR;

$ldt = new LocalizedDateTime(new \DateTime('2013-11-04 20:21:22 UTC'), $repository->locales['fr']);

echo $ldt->as_full;          // lundi 4 novembre 2013 20:21:22 UTC
# or
echo $ldt->format_as_full(); // lundi 4 novembre 2013 20:21:22 UTC

echo $ldt->as_long;          // 4 novembre 2013 20:21:22 UTC
echo $ldt->as_medium;        // 4 nov. 2013 20:21:22
echo $ldt->as_short;         // 04/11/2013 20:21
ICanBoogie\CLDR\LocalizedObject
Extended by ICanBoogie\CLDR\LocalizedDateTime
Namespace: ICanBoogie\CLDR
Located at vendor/icanboogie/cldr/lib/localized/datetime.php

Methods summary

protected ICanBoogie\CLDR\DateTimeFormatter
# get_formatter( )

Returns the formatter.

Returns the formatter.

Returns

ICanBoogie\CLDR\DateTimeFormatter
public mixed
# __get( string $property )

Support for the ICanBoogie\CLDR\LocalizedObject::$target, ICanBoogie\CLDR\LocalizedObject::$locale, and $formatter properties.

Support for the ICanBoogie\CLDR\LocalizedObject::$target, ICanBoogie\CLDR\LocalizedObject::$locale, and $formatter properties.

Parameters

$property
string
$property

Returns

mixed

Throws

ICanBoogie\PropertyNotDefined
in attempt to get a property that is not supported.

Overrides

ICanBoogie\CLDR\LocalizedObject::__get
public
# __set( mixed $property, mixed $value )
public
# __call( mixed $method, mixed $arguments )
public
# __toString( )
public
# format( mixed $pattern = null )

Methods inherited from ICanBoogie\CLDR\LocalizedObject

__construct(), from()

Magic methods summary

public string
# format_as_full( )

Formats the instance according to the full datetime pattern.

Formats the instance according to the full datetime pattern.

Returns

string
public string
# format_as_long( )

Formats the instance according to the long datetime pattern.

Formats the instance according to the long datetime pattern.

Returns

string
public string
# format_as_medium( )

Formats the instance according to the medium datetime pattern.

Formats the instance according to the medium datetime pattern.

Returns

string
public string
# format_as_short( )

Formats the instance according to the short datetime pattern.

Formats the instance according to the short datetime pattern.

Returns

string

Properties summary

Properties inherited from ICanBoogie\CLDR\LocalizedObject

$locale, $options, $target

Magic properties

public read-only string $as_full
#
public read-only string $as_long
#
public read-only string $as_medium
#
public read-only string $as_short
#

Magic properties inherited from ICanBoogie\CLDR\LocalizedObject

$formatter, $locale, $target

Autodoc API documentation generated by ApiGen 2.8.0