用户账变 用户钱包
This commit is contained in:
@ -1,12 +1,19 @@
|
||||
<?php
|
||||
namespace App\Tools;
|
||||
|
||||
use Illuminate\Support\Carbon;
|
||||
|
||||
class Times
|
||||
{
|
||||
//获取当前时间
|
||||
public static function getNowDateTime($format = 'Y-m-d H:i:s'): string
|
||||
public static function getNowDateTime(string $format = 'Y-m-d H:i:s'): string
|
||||
{
|
||||
return date($format);
|
||||
}
|
||||
|
||||
public static function getNowDateTimeAddDays(int $days, string $format = 'Y-m-d'): string
|
||||
{
|
||||
return Carbon::now()->addDays($days)->format($format);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user