<?php
//echo date('d-M-y');
//echo date('d-m-y H:i:s A' , strtotime( '29-APR-13 09.28.12.505032 pm'));
$date = '29-APR-13 09.28.12.505032 PM';
$new_date = substr($date,0,18).substr($date, 25,28);
$new_date = str_replace(".", ":", $new_date);
echo $new_date;
echo date("d/M/y h:i:s A")
$elapsed_time = round(abs(date("d/M/y h:i:s A") - $new_date) / 60,2);
echo $elapsed_time;
- Output for 5.4.0 - 5.4.36
- Parse error: syntax error, unexpected '$elapsed_time' (T_VARIABLE), expecting ',' or ';' in /in/tshYg on line 9
Process exited with code 255. - Output for 5.3.0 - 5.3.29
- Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /in/tshYg on line 9
Process exited with code 255.
preferences:
182.79 ms | 1395 KiB | 73 Q