Свойство | Тип | Описание | |
---|---|---|---|
$name | ValueObjects\StringLiteral\StringLiteral |
Метод | Описание | |
---|---|---|
__construct ( ValueObjects\StringLiteral\StringLiteral $name ) | Returns a new TimeZone object | |
__toString ( ) : string | Returns timezone name as string | |
fromDefault ( ) : self | Returns default TimeZone | |
fromNative ( ) : self | Returns a new Time object from native timezone name | |
fromNativeDateTimeZone ( DateTimeZone $timezone ) : self | Returns a new Time from a native PHP \DateTime | |
getName ( ) : ValueObjects\StringLiteral\StringLiteral | Returns timezone name | |
sameValueAs ( ValueObjects\ValueObjectInterface $timezone ) : boolean | Tells whether two DateTimeZone are equal by comparing their names | |
toNativeDateTimeZone ( ) : DateTimeZone | Returns a native PHP \DateTimeZone version of the current TimeZone. |
public __construct ( ValueObjects\StringLiteral\StringLiteral $name ) | ||
$name | ValueObjects\StringLiteral\StringLiteral |
public __toString ( ) : string | ||
Результат | string |
public static fromDefault ( ) : self | ||
Результат | self |
public static fromNative ( ) : self | ||
Результат | self |
public static fromNativeDateTimeZone ( DateTimeZone $timezone ) : self | ||
$timezone | DateTimeZone | |
Результат | self |
public getName ( ) : ValueObjects\StringLiteral\StringLiteral | ||
Результат | ValueObjects\StringLiteral\StringLiteral |
public sameValueAs ( ValueObjects\ValueObjectInterface $timezone ) : boolean | ||
$timezone | ValueObjects\ValueObjectInterface | |
Результат | boolean |
public toNativeDateTimeZone ( ) : DateTimeZone | ||
Результат | DateTimeZone |