PHP 8.3.31
Preview: README.md Size: 1.17 KB
/home/getspomw/royalsquad.us/vendor/symfony/clock/README.md

Clock Component
===============

Symfony Clock decouples applications from the system clock.

Getting Started
---------------

```bash
composer require symfony/clock
```

```php
use Symfony\Component\Clock\NativeClock;
use Symfony\Component\Clock\ClockInterface;

class MyClockSensitiveClass
{
    public function __construct(
        private ClockInterface $clock,
    ) {
        // Only if you need to force a timezone:
        //$this->clock = $clock->withTimeZone('UTC');
    }

    public function doSomething()
    {
        $now = $this->clock->now();
        // [...] do something with $now, which is a \DateTimeImmutable object

        $this->clock->sleep(2.5); // Pause execution for 2.5 seconds
    }
}

$clock = new NativeClock();
$service = new MyClockSensitiveClass($clock);
$service->doSomething();
```

Resources
---------

 * [Documentation](https://symfony.com/doc/current/components/clock.html)
 * [Contributing](https://symfony.com/doc/current/contributing/index.html)
 * [Report issues](https://github.com/symfony/symfony/issues) and
   [send Pull Requests](https://github.com/symfony/symfony/pulls)
   in the [main Symfony repository](https://github.com/symfony/symfony)

Directory Contents

Dirs: 2 × Files: 12

Name Size Perms Modified Actions
Resources DIR
- drwxrwxrwx 2025-09-17 06:53:24
Edit Download
Test DIR
- drwxrwxrwx 2025-09-17 06:53:24
Edit Download
497 B lrw-rw-rw- 2025-09-17 06:53:24
Edit Download
2.31 KB lrw-rw-rw- 2025-09-17 06:53:24
Edit Download
841 B lrw-rw-rw- 2025-09-17 06:53:24
Edit Download
559 B lrw-rw-rw- 2025-09-17 06:53:24
Edit Download
874 B lrw-rw-rw- 2025-09-17 06:53:24
Edit Download
5.42 KB lrw-rw-rw- 2025-09-17 06:53:24
Edit Download
9.15 KB lrw-r--r-- 2026-04-27 08:45:01
Edit Download
1.04 KB lrw-rw-rw- 2025-09-17 06:53:24
Edit Download
3.12 KB lrw-rw-rw- 2025-09-17 06:53:24
Edit Download
2.61 KB lrw-rw-rw- 2025-09-17 06:53:24
Edit Download
1.76 KB lrw-rw-rw- 2025-09-17 06:53:24
Edit Download
1.17 KB lrw-rw-rw- 2025-09-17 06:53:24
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).