Documentation

ClockInterface extends ClockInterface

Tags
author

Nicolas Grekas p@tchwork.com

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
DateTimeImmutable

sleep()

public sleep(float|int $seconds) : void
Parameters
$seconds : float|int

withTimeZone()

public withTimeZone(DateTimeZone|string $timezone) : static
Parameters
$timezone : DateTimeZone|string
Return values
static

        
On this page

Search results