mirror of
https://github.com/dwaxweiler/connector-mobilizon
synced 2025-06-05 21:59:25 +02:00
16 lines
344 B
PHP
16 lines
344 B
PHP
<?php
|
|
namespace MobilizonConnector;
|
|
|
|
final class LocalDateTime {
|
|
private $dateTime;
|
|
|
|
public function __construct(string $dateTimeString, \DateTimeZone $timeZone) {
|
|
$date = new \DateTimeImmutable($dateTimeString);
|
|
$this->dateTime = $date->setTimezone($timeZone);
|
|
}
|
|
|
|
public function getValue() {
|
|
return $this->dateTime;
|
|
}
|
|
}
|