PHP code example of invokemedia / parsetime
1. Go to this page and download the library: Download invokemedia/parsetime library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
invokemedia / parsetime example snippets
parse_time('11 AM - 5 PM');
parse_time('11:22 - 5:31');
parse_time('I will arrive at 1:22 and leave at 9:45');
parse_time('11 AM - Midnight', true); // would become 11 AM - 0:00