PHP code example of amberovsky / time
1. Go to this page and download the library: Download amberovsky/time library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
amberovsky / time example snippets
$time = new Amberovsky\Time\Time();
$time->getTimestamp(); // current timestamp
$time->freeze(1);
$time->getTimestamp(); // == 1
$time->unfreeze();
$time->getTimestamp(); // current timestamp