\duncan3dc\DatesDateTimeParser

Parse dates/times in a variety of formats and create a DateTime object.

Summary

Methods
Properties
Constants
addParser()
addDefaultParsers()
parse()
No public properties found
No constants found
No protected methods found
$parsers
N/A
No private methods found
No private properties found
N/A

Properties

Methods

addDefaultParsers()

addDefaultParsers() : static

Add the default set of parsers the library ships with.

Returns

static

parse()

parse(  $date,   $time = null) : \duncan3dc\Dates\DateTime

Create a new DateTime object from a parsable date/time.

Parameters

$date
$time

Returns

\duncan3dc\Dates\DateTime