Erebot  latest
A modular IRC bot for PHP 5.3+
Erebot\Styling\Variables\DateTimeInterface Interface Reference

Interface for a date and/or time embedded in a template. More...

+ Inheritance diagram for Erebot\Styling\Variables\DateTimeInterface:

Public Member Functions

 getDateType ()
 
 getTimeType ()
 
 getTimeZone ()
 
- Public Member Functions inherited from Erebot\Styling\VariableInterface
 getValue ()
 
 render (\Erebot\IntlInterface $translator)
 

Detailed Description

Interface for a date and/or time embedded in a template.

Definition at line 27 of file DateTimeInterface.php.

Member Function Documentation

Erebot\Styling\Variables\DateTimeInterface::getDateType ( )

Returns the type of rendering used for dates.

Return values
opaqueThe type of rendering used for dates. This is one of the constants defined in http://php.net/manual/en/class.intldateformatter.php

Implemented in Erebot\Styling\Variables\DateTimeVariable.

Erebot\Styling\Variables\DateTimeInterface::getTimeType ( )

Returns the type of rendering used for times.

Return values
opaqueThe type of rendering used for dates. This is one of the constants defined in http://php.net/manual/en/class.intldateformatter.php

Implemented in Erebot\Styling\Variables\DateTimeVariable.

Erebot\Styling\Variables\DateTimeInterface::getTimeZone ( )

Returns the timezone used to format values.

Return values
stringThe name of the timezone used to format dates and times (eg. "Europe/Paris").
NULLNULL is returned in case no timezone was specified during this object's creation. In that case, the current timezone of the system is used to render dates/times.

Implemented in Erebot\Styling\Variables\DateTimeVariable.


The documentation for this interface was generated from the following file: