无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

博圖TIA系統(tǒng)時(shí)間轉(zhuǎn)unix時(shí)間戳

2021-06-23 18:13 作者:H0lyzer  | 我要投稿


接口定義

//Function: Converttoutime-converts DIL TO Unix Time

//Calculate the Unix time equlvalent OR the DIL time Input parameter

//Unix time 1s aimply the number of seconds since 1970-01-01-00: 00

//Rev1310n:04-22-2015

//n1t1a113e

#SecsPerDay :=24*60*60;

//Number of seconds for year component

#YearSecs := (#Time.YEAR - 1970) * 365 * #SecsPerDay;

//Number of leap year days (excluding year 2000)

#LeapDays := TRUNC_USINT(#Time.YEAR - 1972) / 4;

#LeapYear := ((#Time.YEAR - 1972) MOD 4 = 0) AND (#Time.YEAR <> 2000);

//Number of seconds for leap year component excluding January, February of leap year19 OIE (Leapyear AND #Time. MONTH <3) THEN

IF (#LeapYear AND #Time.MONTH<3) THEN

? ? #LeapSecs := (#LeapDays - 1) * #SecsPerDay;

ELSE

? ? #LeapSecs := #LeapDays * #SecsPerDay;

END_IF;

? //Number of seconds for month component

CASE #Time.MONTH OF

? ? 1:

? ? ? ? #MonthSecs := 0;

? ? ? ? ;

? ? 2:

? ? ? ? #MonthSecs := 31 * #SecsPerDay;

? ? ? ? ;

? ? 3:

? ? ? ? #MonthSecs := (31 + 28) * + #SecsPerDay;

? ? ? ? ;

? ? 4:

? ? ? ? #MonthSecs := (31 + 28 + 31) * #SecsPerDay;

? ? ? ? ;

? ? 5:

? ? ? ? #MonthSecs := (31 + 28 + 31 + 30) * #SecsPerDay;

? ? ? ? ;

? ? 6:

? ? ? ? #MonthSecs := (31 + 28 + 31 + 30 + 31) * #SecsPerDay;

? ? ? ? ;

? ? 7:

? ? ? ? #MonthSecs := (31 + 28 + 31 + 30 + 31 + 30) * #SecsPerDay;

? ? ? ? ;

? ? 8:

? ? ? ? #MonthSecs := (31 + 28 + 31 + 30 + 31 + 30 + 31) * #SecsPerDay;

? ? ? ? ;

? ? 9:

? ? ? ? #MonthSecs := (31 + 28 + 31 + 30 + 31 + 30 + 31 + 31) * #SecsPerDay;

? ? ? ? ;

? ? 10:

? ? ? ? #MonthSecs := (31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30) * #SecsPerDay;

? ? ? ? ;

? ? 11:

? ? ? ? #MonthSecs := (31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31) * #SecsPerDay;

? ? ? ? ;

? ? 12:

? ? ? ? #MonthSecs := (31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30) * #SecsPerDay;

END_CASE;

? ?//Number of seconds for day component

#DaySecs := #Time.DAY * #SecsPerDay;

? ?//Number of seconds for hour component

#HourSecs:=USINT_TO_UDINT(#Time.HOUR)*60* 60;

? ?//Number of seconds for minute component

#MinSecs := USINT_TO_UDINT(#Time.MINUTE) * 60;

? ?//Sum individual components

#UnixTime := #YearSecs + #LeapSecs + #MonthSecs + #DaySecs + #HourSecs + #MinSecs + #Time.SECOND;


博圖TIA系統(tǒng)時(shí)間轉(zhuǎn)unix時(shí)間戳的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
南部县| 稷山县| 蒲城县| 靖宇县| 竹山县| 菏泽市| 金溪县| 衡东县| 金乡县| 浮山县| 托里县| 富源县| 杂多县| 双牌县| 睢宁县| 皮山县| 定安县| 江都市| 敖汉旗| 筠连县| 儋州市| 康乐县| 平武县| 扬州市| 招远市| 沙雅县| 嘉义县| 禹城市| 清涧县| 韶关市| 肥乡县| 绥宁县| 宣武区| 边坝县| 双鸭山市| 丁青县| 陇川县| 德清县| 名山县| 平遥县| 富阳市|