blacktools/datetime

A set of functions to work with date and time in PHP, it contains a powerful schedule maker.

1.0.0 2017-05-30 17:35 UTC

This package is not auto-updated.

Last update: 2024-06-09 01:45:50 UTC


README

Via Composer

$ composer require blacktools/datetime

Usage

require 'vendor/autoload.php';

use 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"
  ...

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email hriqueft@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.