PHP 클래스 IMP_Message_Date, horde

저자: Michael Slusarz ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Horde_Imap_Client_DateTime | string $date = null ) Constructor.
__toString ( )
format ( integer $format ) : string Formats the date.

비공개 메소드들

메소드 설명
_buildCache ( ) Build the date cache.
_format ( string $type, integer $udate ) : string Format the date/time.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Horde_Imap_Client_DateTime | string $date = null )
$date Horde_Imap_Client_DateTime | string The date.

__toString() 공개 메소드

public __toString ( )

format() 공개 메소드

Formats the date.
public format ( integer $format ) : string
$format integer Formatting options: - DATE_FORCE: Force use of date formatting, instead of time formatting, for all dates. - DATE_FULL: Use full representation of date, including time information. - DATE_ISO_8601: Return ISO 8601 formatted date. - DATE_LOCAL: Display localized formatting (with timezone information). Displays "Today" for the current date.
리턴 string The formatted date string.