final | |
---|---|
implements |
ClockInterface |
Methods | ||
---|---|---|
public
|
__construct(ClockInterface|Factory|DateTimeInterface $currentClock)
|
# |
public
|
unwrap(): ClockInterface|Factory|DateTimeInterface
|
# |
public
|
getFactory(): Factory
|
# |
public
|
now(): DateTimeImmutable
|
# |
public
|
nowAs<T is CarbonInterface>(class-string<T> $class, DateTimeZone|string|int|null $timezone = null): T
|
# |
public
|
nowAsCarbon(DateTimeZone|string|int|null $timezone = null): CarbonInterface
|
# |
public
|
sleep(float|int $seconds): void
|
# |
public
|
withTimeZone(DateTimeZone|string $timezone): static
|
# |