Download the PHP package php-sap/datetime without Composer
On this page you can find all versions of the php package php-sap/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
SAP DateTime
Extends PHP's DateTime class by SAP week, date, time and timestamp format. Extends PHP's DateInterval class by SAP time format.
- SAP week in format
<year><week>
- SAP date in format
<year><month><day>
- SAP time in format
<hour><minute><second>
- SAP timestamp in format
<year><month><day><hour><minute><second>
Usage
Parse a SAP week string into a DateTime object.
Format a DateTime object as SAP week string
Parse a SAP date string into a DateTime object
Format a DateTime object as SAP date
Parse a SAP time string into a DateTime object
Parse a SAP time string into a DateInterval object
This example uses 25 hours to demonstrate the usage of a DateInterval object
in combination with a DateTime object. Please beware, that the format()
method is more like PHP's sprintf()
and less like date()
.
Format a DateTime object as SAP time
Format a DateInterval object as SAP time
Parse a SAP timestamp into a DateTime object
Format a DateTime object as SAP timestamp
All versions of datetime with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
The package php-sap/datetime contains the following files
Loading the files please wait ....