@ 2017-12-15T13:59:05Z <?php
$date = '13-09-2010 00:00:00';
date_default_timezone_set('IST');
$etc = (strtotime($date) * 1000) - (strtotime('02-01-1970 00:00:00') * 1000);
echo $etc;
echo "\n---------------------------------------------------------------------\n";
$str = strtotime($date);
//Wed Oct 13 2010 05:30:00 GMT+0530
$ab = date("D M j Y G:i:s T", strtotime('02-01-1970 00:00:00'));
echo $ab;
echo "\n---------------------------------------------------------------------\n";
$datetime = new DateTime('Fri Jan 2 1970 0:00:00 UTC', new DateTimeZone('Asia/Calcutta'));
$datetime->setTimezone(new DateTimeZone('Asia/Calcutta'));
print $datetime->format('Y-m-d H:i:s (e)');
echo "\n---------------------------------------------------------------------\n";
$cur_time=date("Y-m-d H:i:s");
$curDate = '02-01-1970';
$input = array(1,7,3,5,9,2);
$duration='+"echo array_rand($input, 1);"' minutes';
echo date('Y-m-d H:i:s', strtotime($duration, strtotime($curDate)));
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Version System time (s) User time (s) Memory (MiB) 7.2.0 0.003 0.017 19.84 7.1.12 0.009 0.009 18.48 7.1.11 0.001 0.018 17.86 7.1.10 0.003 0.017 17.65 7.1.9 0.006 0.017 17.86 7.1.8 0.000 0.015 18.06 7.1.7 0.004 0.008 17.00 7.1.6 0.016 0.010 35.05 7.1.5 0.013 0.016 34.40 7.1.4 0.023 0.017 34.30 7.1.3 0.022 0.009 34.42 7.1.2 0.010 0.016 34.46 7.1.1 0.009 0.006 16.13 7.1.0 0.004 0.011 16.45
preferences:dark mode live preview
134.14 ms | 1410 KiB | 7 Q