eee
This commit is contained in:
@@ -29,6 +29,19 @@ class DateFormat
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param int $time
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public static function timeFromStrDate(int $time): array
|
||||||
|
{
|
||||||
|
$year = date('Y', $time);
|
||||||
|
$month = date('m', $time);
|
||||||
|
$day = date('d', $time);
|
||||||
|
return [$year, $month, $day];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $time
|
* @param $time
|
||||||
* @return bool|false|int|string
|
* @return bool|false|int|string
|
||||||
|
|||||||
Reference in New Issue
Block a user