mirror of
https://github.com/dwaxweiler/connector-mobilizon
synced 2025-06-05 21:59:25 +02:00
11 lines
242 B
PHP
11 lines
242 B
PHP
<?php
|
|
namespace MobilizonConnector;
|
|
|
|
final class DateTimeFormatter
|
|
{
|
|
public static function format(\DateTimeImmutable $dateTime, string $format) {
|
|
$timestamp = $dateTime->getTimestamp();
|
|
return date_i18n($format, $timestamp);
|
|
}
|
|
}
|