How to converting pacific time string to time format in PHP
Those are formatted as ISO 8601 durations, which is supported by DateInterval, which has the handy method format.
Lets see now below Example
echo (new DateInterval("PT19H15M"))->format("%H:%I");
Output
19:15
Leave a Reply