Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
v3.cesa.co.za /
vendor /
symfony /
clock /
Delete
Unzip
Name
Size
Permission
Date
Action
Resources
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Test
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
.htaccess
237
B
-r-xr-xr-x
2026-08-17 03:12
CHANGELOG.md
416
B
-rwxrwxr-x
2025-11-11 21:24
Clock.php
2.31
KB
-rwxrwxr-x
2025-11-11 21:24
ClockAwareTrait.php
891
B
-rwxrwxr-x
2025-11-11 21:24
ClockInterface.php
559
B
-rwxrwxr-x
2025-11-11 21:24
DatePoint.php
4.19
KB
-rwxrwxr-x
2025-11-11 21:24
LICENSE
1.04
KB
-rwxrwxr-x
2025-11-11 21:24
MockClock.php
3.18
KB
-rwxrwxr-x
2025-11-11 21:24
MonotonicClock.php
2.61
KB
-rwxrwxr-x
2025-11-11 21:24
NativeClock.php
1.76
KB
-rwxrwxr-x
2025-11-11 21:24
README.md
1.17
KB
-rwxrwxr-x
2025-11-11 21:24
composer.json
874
B
-rwxrwxr-x
2025-11-11 21:24
Save
Rename
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Clock; /** * An immmutable DateTime with stricter error handling and return types than the native one. * * @author Nicolas Grekas <p@tchwork.com> */ final class DatePoint extends \DateTimeImmutable { /** * @throws \DateMalformedStringException When $datetime is invalid */ public function __construct(string $datetime = 'now', ?\DateTimeZone $timezone = null, ?parent $reference = null) { $now = $reference ?? Clock::get()->now(); if ('now' !== $datetime) { if (!$now instanceof static) { $now = static::createFromInterface($now); } if (\PHP_VERSION_ID < 80300) { try { $builtInDate = new parent($datetime, $timezone ?? $now->getTimezone()); $timezone = $builtInDate->getTimezone(); } catch (\Exception $e) { throw new \DateMalformedStringException($e->getMessage(), $e->getCode(), $e); } } else { $builtInDate = new parent($datetime, $timezone ?? $now->getTimezone()); $timezone = $builtInDate->getTimezone(); } $now = $now->setTimezone($timezone)->modify($datetime); if ('00:00:00.000000' === $builtInDate->format('H:i:s.u')) { $now = $now->setTime(0, 0); } } elseif (null !== $timezone) { $now = $now->setTimezone($timezone); } if (\PHP_VERSION_ID < 80200) { $now = (array) $now; $this->date = $now['date']; $this->timezone_type = $now['timezone_type']; $this->timezone = $now['timezone']; $this->__wakeup(); return; } $this->__unserialize((array) $now); } /** * @throws \DateMalformedStringException When $format or $datetime are invalid */ public static function createFromFormat(string $format, string $datetime, ?\DateTimeZone $timezone = null): static { return parent::createFromFormat($format, $datetime, $timezone) ?: throw new \DateMalformedStringException(static::getLastErrors()['errors'][0] ?? 'Invalid date string or format.'); } public static function createFromInterface(\DateTimeInterface $object): static { return parent::createFromInterface($object); } public static function createFromMutable(\DateTime $object): static { return parent::createFromMutable($object); } public function add(\DateInterval $interval): static { return parent::add($interval); } public function sub(\DateInterval $interval): static { return parent::sub($interval); } /** * @throws \DateMalformedStringException When $modifier is invalid */ public function modify(string $modifier): static { if (\PHP_VERSION_ID < 80300) { return @parent::modify($modifier) ?: throw new \DateMalformedStringException(error_get_last()['message'] ?? \sprintf('Invalid modifier: "%s".', $modifier)); } return parent::modify($modifier); } public function setTimestamp(int $value): static { return parent::setTimestamp($value); } public function setDate(int $year, int $month, int $day): static { return parent::setDate($year, $month, $day); } public function setISODate(int $year, int $week, int $day = 1): static { return parent::setISODate($year, $week, $day); } public function setTime(int $hour, int $minute, int $second = 0, int $microsecond = 0): static { return parent::setTime($hour, $minute, $second, $microsecond); } public function setTimezone(\DateTimeZone $timezone): static { return parent::setTimezone($timezone); } public function getTimezone(): \DateTimeZone { return parent::getTimezone() ?: throw new \DateInvalidTimeZoneException('The DatePoint object has no timezone.'); } }