ClockInterface
extends
ClockInterface
in
Tags
Table of Contents
Methods
- now() : DateTimeImmutable
- Returns the current time as a DateTimeImmutable Object
- sleep() : void
- withTimeZone() : static
Methods
now()
Returns the current time as a DateTimeImmutable Object
public
now() : DateTimeImmutable
Return values
DateTimeImmutablesleep()
public
sleep(float|int $seconds) : void
Parameters
- $seconds : float|int
withTimeZone()
public
withTimeZone(DateTimeZone|string $timezone) : static
Parameters
- $timezone : DateTimeZone|string