|
|
@@ -10,7 +10,7 @@ class Time
|
|
|
* @param boolean $is_local 是否为本地时间,默认 UTC时间
|
|
|
* @return string 时间字符串
|
|
|
*/
|
|
|
- public static function now_time(bool $is_local = true)
|
|
|
+ public static function now_time(bool $is_local = true): string
|
|
|
{
|
|
|
}
|
|
|
|
|
|
@@ -20,7 +20,7 @@ class Time
|
|
|
* @param boolean $is_local 是否为本地时间,默认 UTC时间
|
|
|
* @return integer 时间戳
|
|
|
*/
|
|
|
- public static function now(bool $is_local = true)
|
|
|
+ public static function now(bool $is_local = true): int
|
|
|
{
|
|
|
}
|
|
|
|
|
|
@@ -30,7 +30,7 @@ class Time
|
|
|
* @param boolean $is_local 是否为本地时间,默认 UTC时间
|
|
|
* @return integer 时间戳
|
|
|
*/
|
|
|
- public static function now_millis(bool $is_local = true)
|
|
|
+ public static function now_millis(bool $is_local = true): int
|
|
|
{
|
|
|
}
|
|
|
|
|
|
@@ -40,7 +40,7 @@ class Time
|
|
|
* @param boolean $is_local 是否为本地时间,默认 UTC时间
|
|
|
* @return integer 时间戳
|
|
|
*/
|
|
|
- public static function now_micro(bool $is_local = true)
|
|
|
+ public static function now_micro(bool $is_local = true): int
|
|
|
{
|
|
|
}
|
|
|
|
|
|
@@ -50,7 +50,7 @@ class Time
|
|
|
* @param boolean $is_local 是否为本地时间,默认 UTC时间
|
|
|
* @return integer 时间戳
|
|
|
*/
|
|
|
- public static function now_nano(bool $is_local = true)
|
|
|
+ public static function now_nano(bool $is_local = true): int
|
|
|
{
|
|
|
}
|
|
|
}
|