SystemClock

Class
implements ClockInterface
Final: Yes

A clock implementation that returns the current system time.

Description

This class implements the ClockInterface and provides a method to get the current time as a DateTimeImmutable object.

Table of Contents

Interfaces

Methods

now()

Returns the current time as a DateTimeImmutable Object.

 : DateTimeImmutable
Methods

now()

Public

Returns the current time as a DateTimeImmutable Object.

public now() : DateTimeImmutable
Return values
DateTimeImmutable