Overview

Namespaces

  • Peach
    • DF
    • DT
    • Http
      • Body
      • Header
    • Markup
    • Util

Classes

  • AbstractTime
  • Clock
  • Date
  • Datetime
  • DefaultClock
  • FixedClock
  • FormatWrapper
  • HttpDateFormat
  • OffsetClock
  • ShiftFormat
  • SimpleFormat
  • TimeEquator
  • Timestamp
  • TimeWrapper
  • UnixTimeFormat
  • Util
  • W3cDatetimeFormat

Interfaces

  • Format
  • Time
  • Overview
  • Namespace
  • Class

Class FormatWrapper

既存の Format オブジェクトを機能拡張するためのラッパークラスです. このクラスは Decorator パターンで設計されています.

Peach\DT\FormatWrapper implements Peach\DT\Format

Direct known subclasses

Peach\DT\ShiftFormat
Namespace: Peach\DT
Located at Peach/DT/FormatWrapper.php
Methods summary
public
# __construct( Peach\DT\Format $original )

指定された Format オブジェクトをラップする FormatWrapper を構築します.

指定された Format オブジェクトをラップする FormatWrapper を構築します.

Parameters

$original
ラップ対象のオブジェクト
public Peach\DT\Format
# getOriginal( )

ラップ対象の Format オブジェクトを返します.

ラップ対象の Format オブジェクトを返します.

Returns

Peach\DT\Format
ラップ対象のオブジェクト
public string
# formatDate( Peach\DT\Date $d )

ラップ対象のオブジェクトの formatDate メソッドを実行します.

ラップ対象のオブジェクトの formatDate メソッドを実行します.

Parameters

$d
書式化対象の時間オブジェクト

Returns

string
オリジナルの formatDate の結果

Implementation of

Peach\DT\Format::formatDate()
public string
# formatDatetime( Peach\DT\Datetime $d )

ラップ対象のオブジェクトの formatDatetime メソッドを実行します.

ラップ対象のオブジェクトの formatDatetime メソッドを実行します.

Parameters

$d
書式化対象の時間オブジェクト

Returns

string
オリジナルの formatDatetime の結果

Implementation of

Peach\DT\Format::formatDatetime()
public string
# formatTimestamp( Peach\DT\Timestamp $d )

ラップ対象のオブジェクトの formatTimestamp メソッドを実行します.

ラップ対象のオブジェクトの formatTimestamp メソッドを実行します.

Parameters

$d
書式化対象の時間オブジェクト

Returns

string
オリジナルの formatTimestamp の結果

Implementation of

Peach\DT\Format::formatTimestamp()
public Peach\DT\Time
# parseDate( string $format )

ラップ対象のオブジェクトの parseDate メソッドを実行します.

ラップ対象のオブジェクトの parseDate メソッドを実行します.

Parameters

$format
解析対象の文字列

Returns

Peach\DT\Time
オリジナルの parseDate の結果

Implementation of

Peach\DT\Format::parseDate()
public Peach\DT\Time
# parseDatetime( string $format )

ラップ対象のオブジェクトの parseDatetime メソッドを実行します.

ラップ対象のオブジェクトの parseDatetime メソッドを実行します.

Parameters

$format
解析対象の文字列

Returns

Peach\DT\Time
オリジナルの parseDatetime の結果

Implementation of

Peach\DT\Format::parseDatetime()
public Peach\DT\Time
# parseTimestamp( string $format )

ラップ対象のオブジェクトの parseTimestamp メソッドを実行します.

ラップ対象のオブジェクトの parseTimestamp メソッドを実行します.

Parameters

$format
解析対象の文字列

Returns

Peach\DT\Time
オリジナルの parseTimestamp の結果

Implementation of

Peach\DT\Format::parseTimestamp()
PEACH2 API documentation generated by ApiGen