18 lines
272 B
PHP
18 lines
272 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Kernel\DateTime;
|
|
|
|
use DateTimeInterface;
|
|
|
|
class Util
|
|
{
|
|
public static function toString(
|
|
DateTimeInterface $datetime,
|
|
Format $format
|
|
): string{
|
|
return $datetime->format($format->value);
|
|
}
|
|
}
|