FullTransformer::parse()

int parse(DateTime $dateTime, string $value)

Parse a pattern based string to a timestamp value.

Parameters

DateTime $dateTime A configured DateTime object to use to perform the date calculation
string $value String to convert to a time value

Return Value

int The corresponding Unix timestamp

Exceptions

InvalidArgumentException When the value can not be matched with pattern
doc_Symfony
2016-10-28 06:19:34
Comments
Leave a Comment

Please login to continue.