1
0
Fork 0

Fix PHPDoc comments project-wide

This commit is contained in:
Hypolite Petovan 2019-01-06 16:06:53 -05:00
commit 3282ce5389
113 changed files with 1703 additions and 795 deletions

View file

@ -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)
{