Symfony\Component\Intl\DateFormatter\DateFormat\FullTransformer::parse
Parse a pattern based string to a timestamp value
Signature
public function parse(DateTime
$dateTime,
string
$value )
Parameters
$dateTime
— \DateTime- A configured DateTime object to use to perform the date calculation
$value
— string- String to convert to a time value
Returns
- int
- The corresponding Unix timestamp
Errors/Exceptions
-
InvalidArgumentException
- When the value can not be matched with pattern