Download the PHP package plumphp/plum-date without Composer
On this page you can find all versions of the php package plumphp/plum-date. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download plumphp/plum-date
More information about plumphp/plum-date
Files in plumphp/plum-date
Package plum-date
Short Description PlumDate provides date and time converters for Plum.
License MIT
Informations about the package plum-date
PlumDate provides date and time converters for Plum. Plum is a data processing pipeline for PHP.
PlumDate provides date and time converters for Plum. Plum is a data processing pipeline for PHP.
Developed by Florian Eckerstorfer in Vienna, Europe.
Installation
You can install PlumDate using Composer.
Usage
Please refer to the Plum documentation for more information.
Currently PlumDate contains converters to convert strings and timestamps into DateTime
objects and to convert
DateTime
objects into strings and timestamps and filters to detect whether a date is before or after a certain point
in time.
Overview
Converters
DateTimeToStringConverter
DateTimeToTimestampConverter
StringToDateTimeConverter
TimestampToDateTimeConverter
Filters
AfterFilter
BeforeFilter
RangeFilter
DateTimeToStringConverter
Plum\PlumDate\DateTimeToStringConverter
converts a DateTime
object into a string. The format of the string has to
be passed to the constructor.
DateTimeToTimestampConverter
Plum\PlumDate\DateTimeToTimestampConverter
converts a DateTime
object into a timestamp.
StringToDateTimeConverter
Plum\PlumDate\StringToDateTimeConverter
takes a string and returns a DateTime
object. The constructor takes an
optional DateTimeZone
object that is passed to the DateTime
constructor.
TimestampToDateTimeConverter
Plum\PlumDate\TimestampToDateTimeConverter
takes a timestamp and returns a DateTime
object. An instance of
DateTimeZone
can be passed to the constructor, which will be used to instantiate the DateTime
object.
AfterFilter
Plum\PlumDate\AfterFilter
returns true
for all dates that are after a given date.
BeforeFilter
Plum\PlumDate\BeforeFilter
returns true
for all dates that are before a given date.
RangeFilter
Plum\PlumDate\RangeFilter
returns true
for all dates that lie within a given range of dates.
Change Log
Version 0.1 (23 October 2015)
- Initial release
License
The MIT license applies to plumphp/plum-date. For the full copyright and license information, please view the LICENSE file distributed with this source code.