Download the PHP
package yalesov/date-time-parser without Composer
On this page you can find all versions of the php package
yalesov/date-time-parser. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor yalesov Package date-time-parser Short Description Parse date and time according to the subset of ISO 8601 date/time format used in Vcard [ISO 6350]. License
ISC Homepage https://github.com/yalesov/php-date-time-parser
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
It accepts an ISO-8601 date-and-or-time string and returns an array of datetime units. It will throw an InvalidArgumentException if the input is not a valid date/time expression, or if the date/time specified is invalid.
Missing date/time units will be filled with null.
Standalone time expressions must be prefixed with T.
To parse an ISO-8601 date expression, use:
To parse an ISO-8601 time expression, use:
The return array for these two functions are same as Parser::parseDateTime().
Create an ISO-8601 date/time
These are simply reverses of the parse-() functions.
Full function signatures:
Valid ranges:
Year: (unlimited)
Month: 01-12
Day: 01-31
Hour: 00-23
Minute: 00-59
Second: 00-59
Note that 0-prefixed numbers are different from 0-prefixed strings. For example, if you mean August, write 8 or '08', not 08.
Create a timestamp from a complete or partial date/time
Accepted arguments are same as the create-() series.
Parser::createTimestamp() will create a timestamp if at least year, month, day are given (and valid). It will assume '00' for hour, minute and second if not given; and script timezone if timezone is not given.
Return null if failed to create a timestamp.
All versions of date-time-parser with dependencies
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package yalesov/date-time-parser contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.