windows version of setTimestamp

TheBASHoologist

New Member
I have a php script that runs on unix but I need it to run on windows.setTimestamp is unix only and I need the windows equivalent.http://php.net/manual/en/datetime.settimestamp.phpExample:\[code\]foreach($config['feeds'] as $feed){ // in case we didn't save a last checked date, set it to sometime in the 70's $last_date = new DateTime(); $last_date->setTimestamp(0); $last_date_save = 0; // the feeds are identified in the cache file by the hash of their url. $feed_hash = sha1($feed['url']); if(isset($stats[$feed_hash]['lastPubDate'])){ if($config['debug'] > 0) echo "feed had lastpubdate\n"; $last_date = new DateTime(); $last_date->setTimestamp($stats[$feed_hash]['lastPubDate']); }\[/code\]}Any ideas?
 
Back
Top