請問如何將秒數轉換成時分秒,有無現成的函式可使用? |
尚未結案
|
nlj859
資深會員 發表:139 回覆:375 積分:322 註冊:2004-03-20 發送簡訊給我 |
|
justdo
高階會員 發表:2 回覆:359 積分:222 註冊:2004-08-17 發送簡訊給我 |
|
hornacek
一般會員 發表:29 回覆:76 積分:21 註冊:2004-02-02 發送簡訊給我 |
取自BCB的Help... TDateTime::DecodeDate Separates the TDateTime value into year, month, and day values and stores these values in the year, month, and day parameters, respectively. void __fastcall DecodeDate(unsigned short* year, unsigned short* month, unsigned short* day) const; Description Use DecodeDate() when you need to access the year, month, or day of a TDateTime object? date portion.
------------------------------------------------------------------------------------------
TDateTime::DecodeTime Separates the TDateTime value into hour, minute, second, and millisecond values and stores these values in the hour, min, sec, and msec parameters, respectively. void __fastcall DecodeTime(unsigned short* hour, unsigned short* min, unsigned short* sec,
unsigned short* msec) const; Description Use DecodeTime() to access the hour, minute, second, or millisecond values of the TDateTime object? time portion.
|
andychang1690
資深會員 發表:20 回覆:694 積分:442 註冊:2003-03-14 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |