當前位置:首頁 > 新雙立活動
* @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; } } ?>
New Car Launch

Scirocco R、Golf R新車上市 火熱預訂中

大衆進口汽車家族兩款高性能跑車Scirocco R、Golf R全新上市,四川新雙立全面接受預訂,訂金2萬元,詳詢:028-85280700.

Golf R是世界上最成功車型Golf的頂級車型,同時也是大衆汽車R GmbH公司最爲重要的車型之一。它標配四輪驅動(4MOTION)、帶隨動轉向和大燈清洗功能的雙氙氣大燈、LED日間行車燈以及LED尾燈。作爲一款 動力性性和燃油經濟性兼具的高端跑車,Golf R最大輸出功率爲188千瓦/256馬力,從靜止加速至100公裏/小時僅需5.7秒。Golf R的90公裏/小時等速油耗僅爲6.2升/百公裏。同時,Golf R的外觀和內飾也煥然一新。外部個性化定制包括“Talladega”輪毂,帶R標志的黑色刹車卡鉗以及新的保險杠設計。此外,車內的“頂級運動座椅系 統”——桶式運動座椅也是該車型的一大亮點。

尚 酷R是有史以來細分市場上最爲強勁的車型之一。尚酷R的最大輸出功率爲188千瓦/256馬力,最大扭矩爲330牛•米,堪稱一款真正的高性能跑車。尚 酷R四座跑車兼具高性能和燃油經濟性;它充分滿足了車主們日常生活代步與賽道馳騁的雙重需求,爲他們帶來了純粹的駕駛樂趣。


更多詳情請咨詢大衆進口汽車特許經銷商四川新雙立:

新雙立4S店:028-85280700 輝騰定制中心:028-65533866

凱宴美湖展廳:028-85199631 西門城市展廳:028-81713636

網址:www.yichunmi.com

地址:成都市火車南站西路2080號