PHPackages                             rbroen/datetime-practical - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. rbroen/datetime-practical

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rbroen/datetime-practical
=========================

A practical way at looking at datetime events

00PHP

Since May 6Pushed 2mo agoCompare

[ Source](https://github.com/rbroen/datetime-practical)[ Packagist](https://packagist.org/packages/rbroen/datetime-practical)[ RSS](/packages/rbroen-datetime-practical/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

DateTimePractical - A practical way at looking at datetime events
=================================================================

[](#datetimepractical---a-practical-way-at-looking-at-datetime-events)

This library provides a useful object with a start moment and an end moment.

When using start and end in a full day mode, the start and end time should be 00:00:00, with the end date on the day AFTER the last full day. When displaying and/or editing as a full days, the code should present the last full day without the time.

Install
-------

[](#install)

To install with composer:

```
composer require rbroen/datetime-practical
```

Requires PHP 8.2 or newer.

Usage
-----

[](#usage)

Here's a basic usage example:

```
