Download the PHP package xenon/datetime-calc without Composer
On this page you can find all versions of the php package xenon/datetime-calc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download xenon/datetime-calc
More information about xenon/datetime-calc
Files in xenon/datetime-calc
Download xenon/datetime-calc
More information about xenon/datetime-calc
Files in xenon/datetime-calc
Vendor xenon
Package datetime-calc
Short Description This is a date time calculation library for php based on Carbon
License MIT
Package datetime-calc
Short Description This is a date time calculation library for php based on Carbon
License MIT
Please rate this library. Is it a good library?
Informations about the package datetime-calc
Breakdown and Splitting Time Range
$time = new TimeBreakDown(
startTime: '11:00',
endTime: '12:00'
);
$time->setIntervalMinute(30);
$time->setBreakDuration(2);
$time->includeBreaks(1);
$data = $time->getIntervals(
breakString: 'is_break',
startTimeFormat: 'H:i:s',
endTimeFormat: 'H:i:s'
);
This will print below time split with 30mins breaks in every stage and it has 2mins break als
Array
(
[0] => Array
(
[start] => 11:00:00
[end] => 11:30:00
)
[1] => Array
(
[start] => 11:30:00
[end] => 11:32:00
[is_break] => 1
)
[2] => Array
(
[start] => 11:32:00
[end] => 12:02:00
)
[3] => Array
(
[start] => 12:02:00
[end] => 12:04:00
[is_break] => 1
)
)
All versions of datetime-calc with dependencies
PHP Build Version
Package Version
The package xenon/datetime-calc contains the following files
Loading the files please wait ...