<?php
declare(strict_types=1);
namespace VPlugins\WPCloudClient\Support;
class Clock {
/**
* Get the current Unix timestamp.
*
* @return int The current Unix timestamp.
*/
public function now(): int {
return time();
}
/**
* Get the current time as an ISO 8601 formatted string.
*
* @return string The current time in ISO 8601 format.
*/
public function iso8601(): string {
return gmdate( 'c' );
}
}