PHP code example of blacktools / datetime
1. Go to this page and download the library: Download blacktools/datetime 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/ */
blacktools / datetime example snippets
php
Blacktools\DateTime\TimeMachine;
var_dump(TimeMachine::interval('00:00:00','24:00:00'));
/*
array(24) {
[0] =>
string(8) "00:00:00"
[1] =>
string(8) "01:00:00"
[2] =>
string(8) "02:00:00"
[3] =>
string(8) "03:00:00"
[4] =>
string(8) "04:00:00"
[5] =>
string(8) "05:00:00"
[6] =>
string(8) "06:00:00"
[7] =>
string(8) "07:00:00"
...