Fix PHPDoc comments project-wide
This commit is contained in:
parent
6077aa5847
commit
3282ce5389
113 changed files with 1703 additions and 795 deletions
|
@ -26,6 +26,7 @@ class DateTimeFormat
|
|||
* @param string $time A date/time string
|
||||
* @param string $format DateTime format string or Temporal constant
|
||||
* @return string
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function utc($time, $format = self::MYSQL)
|
||||
{
|
||||
|
@ -38,6 +39,7 @@ class DateTimeFormat
|
|||
* @param string $time A date/time string
|
||||
* @param string $format DateTime format string or Temporal constant
|
||||
* @return string
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function local($time, $format = self::MYSQL)
|
||||
{
|
||||
|
@ -47,8 +49,10 @@ class DateTimeFormat
|
|||
/**
|
||||
* convert() shorthand for timezoned now.
|
||||
*
|
||||
* @param $timezone
|
||||
* @param string $format DateTime format string or Temporal constant
|
||||
* @return string
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function timezoneNow($timezone, $format = self::MYSQL)
|
||||
{
|
||||
|
@ -60,6 +64,7 @@ class DateTimeFormat
|
|||
*
|
||||
* @param string $format DateTime format string or Temporal constant
|
||||
* @return string
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function localNow($format = self::MYSQL)
|
||||
{
|
||||
|
@ -71,6 +76,7 @@ class DateTimeFormat
|
|||
*
|
||||
* @param string $format DateTime format string or Temporal constant
|
||||
* @return string
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function utcNow($format = self::MYSQL)
|
||||
{
|
||||
|
@ -84,9 +90,10 @@ class DateTimeFormat
|
|||
* @param string $tz_to Destination timezone
|
||||
* @param string $tz_from Source timezone
|
||||
* @param string $format Output format recognised from php's DateTime class
|
||||
* http://www.php.net/manual/en/datetime.format.php
|
||||
* http://www.php.net/manual/en/datetime.format.php
|
||||
*
|
||||
* @return string Formatted date according to given format
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function convert($s = 'now', $tz_to = 'UTC', $tz_from = 'UTC', $format = self::MYSQL)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue