Help for this page

Select Code to Download


  1. or download this
    $t1 = 1000
    $t2 = 1005
    $sec_diff = $t2 - $t1;
    print "Time elapsed $sec_diff\n";
    
  2. or download this
    print "GMT time is " . gmtime($sec_diff);
    # Thu Jan  1 00:00:02 1970
    
    print "Local time is " . localtime($sec_diff);
    # Thu Jan  1 19:00:02 1970 - for me at least.