最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(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ó)家法律
彰化县| 莒南县| 塘沽区| 宿迁市| 乐都县| 威远县| 芦山县| 乌兰察布市| 称多县| 怀远县| 噶尔县| 巴中市| 鱼台县| 商南县| 志丹县| 天镇县| 屯昌县| 抚顺县| 建德市| 南充市| 东莞市| 化德县| 南江县| 巍山| 盐亭县| 牡丹江市| 烟台市| 东安县| 富裕县| 井研县| 深水埗区| 抚宁县| 沾化县| 清镇市| 昔阳县| 方山县| 桂阳县| 道孚县| 浦县| 克什克腾旗| 夏邑县|