note 49899 deleted from function.mktime by danbrown

From: Date: Sun, 20 Jul 2008 03:37:02 +0000
Subject: note 49899 deleted from function.mktime by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-142080@lists.php.net to get a copy of this message
Note Submitter: andreas dot schmeiler at rtlnewmedia dot de ---- if you ever wondered how to convert a windows (ASP) Timestamp to an unix Timestamp, try this: (windowsTime to unixTime): function wT2uT($win_timestamp) { $WIN_DATE_CONST=2209165200; $WIN_TIME_CONST=115740.74074074; list($win_date, $win_time)=explode(",",$win_timestamp); $win_time=substr($win_time."0000000000",0,10); $ux_date = $win_date*24*60*60; $ux_date-= (date("I")*60*60); $ux_date-= $WIN_DATE_CONST; $ux_time = round($win_time/$WIN_TIME_CONST); return($ux_date+$ux_time); }

« previous php.notes (#142080) next »