當前位置:首頁
* @modifed Richard Sumilang * @param string $datetime TimeStamp of the time you woud like to edit "YYYY-MM-DD HH:MM:SS". * @param integer $shit_amount The amount you want to shit * @param string $shift_unit Unit you would like to shift * @return timestamp */ function shift_dates($datetime="", $shift_amount, $shift_unit) { /* Check for $datetime */ if(!$datetime){ $datetime=date("Y-m-d H:i:s"); } /* Split into separate sections: date and time */ list($date, $time)=split(" ", $datetime); /* Break down the date */ list($year, $month, $day)=split("-", $date, 3); /* Break down the time */ list($hour, $min, $sec)=split(":", $time, 3); /* This is the date shifting area */ if($shift_unit=="m") { $newdate = mktime ($hour,$min,$sec,$month+$shift_amount,$day, $year); $newdate = date("Y-m-d H:i:s", $newdate); } elseif( $shift_unit=="d") { $newdate = mktime ($hour,$min,$sec,$month,$day+$shift_amount, $year); $newdate = date("Y-m-d H:i:s", $newdate); } elseif ($shift_unit=="Y") { $newdate = mktime ($hour,$min,$sec,$month,$day, $year+$shift_amount); $newdate = date("Y-m-d H:i:s", $newdate); } elseif( $shift_unit=="H") { $newdate = mktime ($hour+$shift_amount,$min,$sec,$month,$day, $year); $newdate = date("Y-m-d H:i:s", $newdate); } elseif ($shift_unit=="i") { $newdate = mktime ($hour,$min+$shift_amount,$sec,$month,$day, $year); $newdate = date("Y-m-d H:i:s", $newdate); } elseif( $shift_unit=="s") { $newdate = mktime ($hour,$min,$sec+$shift_amount,$month,$day, $year); $newdate = date("Y-m-d H:i:s", $newdate); } return $newdate; } /** * This converts MM-DD-YYYY to YYYY-MM-DD * * @author Richard Sumilang * @param date $date MM-DD-YYYY * @return string */ function machine_date($date){ list($month, $date, $year)=split("-", $date); return $year . "-" . $month . "-" . $date; } /** * This converts YYYY-MM-DD to MM-DD-YYYY * * @author Richard Sumilang * @param date $date YYYY-MM-DD * @return string */ function human_date($date){ list($year, $month, $date)=split("-", $date); return $month . "-" . $date . "-" . $year; } /** * This converts stuff like 3:00am to 03:00 and 4:00pm to like 16:00 * * @author Richard Sumilang * @param string $time Time in the form of 1:00 or whatever * @param string $ampm Values are am or pm * @return string */ function convert_to_24_hr($time, $ampm){ /* Make sure it's lower case */ $ampm=strtolower($ampm); /* Split the time */ list($hour, $min)=split(":", $time); switch($ampm){ case "am": $hour=$this->fill_time($hour); break; case "pm": $hour=$hour + 12; break; } $min=$this->fill_time($min); return $hour . ":" . $min; } /** * This converts stuff like 16:00 to 04:00pm * * @author Richard Sumilang * @param string $time Time in the form of HH:MI * @return array */ function convert_from_24_hr($time){ /* Split up the time */ list($hour, $min)=split(":", $time); if($hour > 12){ $hour=$hour-12; $ampm="pm"; }else{ $ampm="am"; } if($hour=="00"){ $hour="24"; } $result=array( "time" => $hour . ":" . $min, "ampm" => $ampm ); return $result; } /** * Add a 0 in front of times with 1 character * * @author Richard Sumilang * @param string $string * @return string */ function fill_time($string){ if(strlen($string)==1){ $string="0" . $string; } return $string; } } ?>
General Information

簡單實用的維修技巧

車主如果發現水箱出現漏水現象,可先去維修店檢查,更換新的水箱,如果漏水情況依然存在,車主應該考慮:

1.檢查水箱蓋是否已經扣緊;

2.試灌氣入水箱,看看水箱的水受壓時是從哪個位置滲出來的,再決定修複方案;

3.擰開發動機加機油的蓋子,看有無機油乳化痕迹,如果有,拆開發動機更換缸墊;

4.水箱質量存在問題。

如果是汽車在行駛過程中,因汽車振動或車輛事故,使水箱水管破裂漏水時,可依據具體情況采取措施:漏水處不超過1mm裂縫或2mm的孔洞時,向水箱中加入一瓶水箱強力堵漏劑,發動汽車運轉。

打開冷卻水開始大循環後5~10分鍾,冷卻系統中不論是水箱還是橡膠管及各處墊,有漏水處都會停止泄漏,止漏後不需要放出,不會影響散熱和發生堵塞。

若無止漏劑攜帶時,對個別散熱管輕微漏水,可臨時用散煙絲放入水箱內,利用水循環壓力,使煙絲堵塞在散熱管的漏水處,暫時使用。

對水箱散熱管漏水較嚴重的,可將漏水的散熱管從漏水處剪斷,用塗上肥皂的棉花團堵住被剪斷散熱管,而後用鉗子把被剪斷的散熱管頭部夾扁再卷邊壓緊即可制止漏水。

橡膠管接頭漏水,可及時用螺絲刀將橡皮管接頭卡子在橡皮管接頭纏二道,而後用鉗子擰緊。如橡皮管損壞,可用膠布把破裂之處包紮緊,暫時使用。