ICanBoogie
  • Documentation
  • API Reference
  • CLDR master
Namespaces
  • ICanBoogie
    • CLDR
      • Plurals
      • Units
Classes
  • AbstractCollection
  • AbstractSectionCollection
  • Calendar
  • CalendarCollection
  • ContextTransforms
  • Currency
  • CurrencyCollection
  • CurrencyFormatter
  • DateFormatter
  • DateTimeAccessor
  • DateTimeFormatter
  • FileProvider
  • ListFormatter
  • Locale
  • LocaleCollection
  • LocalizedCurrency
  • LocalizedDateTime
  • LocalizedListFormatter
  • LocalizedLocale
  • LocalizedNumberFormatter
  • LocalizedObject
  • LocalizedObjectWithFormatter
  • LocalizedTerritory
  • Number
  • NumberFormatter
  • NumberPattern
  • NumberPatternParser
  • Numbers
  • Plurals
  • ProviderCollection
  • RedisProvider
  • Repository
  • RunTimeProvider
  • Supplemental
  • Territory
  • TerritoryCollection
  • TimeFormatter
  • Units
  • WebProvider
Interfaces
  • Exception
  • Formatter
  • LocalizeAwareInterface
  • Provider
Traits
  • CodePropertyTrait
  • CollectionTrait
  • LocalePropertyTrait
  • LocalizeTrait
  • ProviderStorageBinding
  • RepositoryPropertyTrait
Exceptions
  • ResourceNotFound
  • TerritoryNotDefined

Class DateTimeAccessor

Namespace: ICanBoogie\CLDR
Located at DateTimeAccessor.php

Methods summary

public __construct( DateTimeInterface $datetime )

Parameters

$datetime
public __get( $property )

Inheritdoc

public __call( $name, $params )

Inheritdoc

Magic methods summary

public format( string $format ) : string

Parameters

$format

Returns

string

Properties summary

Magic properties

public read-only $timestamp : integer

Unix timestamp.

public read-only $year : integer

Year.

public read-only $month : integer

Month of the year.

public read-only $day : integer

Day of the month.

public read-only $hour : integer

Hour of the day.

public read-only $minute : integer

Minute of the hour.

public read-only $second : integer

Second of the minute.

public read-only $quarter : integer

Quarter of the year.

public read-only $week : integer

Week of the year.

public read-only $weekday : integer

Day of the week.

public read-only $year_day : integer

Day of the year.

CLDR master – Check on GitHub – API documentation generated by ApiGen