Download the PHP package psx/datetime without Composer
On this page you can find all versions of the php package psx/datetime. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package datetime
DateTime
About
PHP port of the Java JSR 310 time API. This package provides the following classes:
Class | Description |
---|---|
Duration | A time-based amount of time, such as '34.5 seconds' |
LocalDate | A date without a time-zone in the ISO-8601 calendar system, such as 2007-12-03 |
LocalDateTime | A date-time without a time-zone in the ISO-8601 calendar system, such as 2007-12-03T10:15:30 |
LocalTime | A time without a time-zone in the ISO-8601 calendar system, such as 10:15:30 |
Period | A date-based amount of time in the ISO-8601 calendar system, such as '2 years, 3 months and 4 days' |
DayOfWeek | A day-of-week, such as 'Tuesday' |
Month | A month-of-year, such as 'July' |
All classes are immutable, this means that every modification to the object returns a new instance containing the modification.
Usage
The following snippet shows some examples how you can use the API.
All versions of datetime with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
The package psx/datetime contains the following files
Loading the files please wait ....