#$end=timegm(gmtime()); #should be $end_secs=timegm(gmtime());