Rivers know this: there is no hurry. We shall get there some day.
河流知道這一點(diǎn):無(wú)需匆忙。我們終有一日會(huì)到達(dá)。———— A. A. Milne
其實(shí)也不叫“開(kāi)發(fā)”,說(shuō)開(kāi)發(fā)有點(diǎn)兒太夸張了點(diǎn)兒~~在一些論壇等地方經(jīng)常會(huì)看到類似“剛剛”、“5分鐘前”、“昨天10:23“這樣的東東,其實(shí)實(shí)現(xiàn)起來(lái)相當(dāng)?shù)暮?jiǎn)單,一個(gè)減法就能搞定,下面看代碼://顯示類似“剛剛”、“5分鐘前”、“昨天10:23“功能的時(shí)間軸開(kāi)發(fā)function tranTime($time) { //這里是傳入一個(gè)unix時(shí)間戳 $rtime = date("m-d H:i",$time); $htime = date("H:i",$time); $time = ...