MsgBox(0,"提示","已过"&_datatime()&"天",0) Func _datatime() $timeout1 = '20200824' $timeout2=""&@YEAR&""&@MON&""&@MDAY&"" If $timeout2-$timeout1<=0 Then MsgBox(0,"警告","时间已到,关闭",0) MsgBox(0,"提示","剩余时间"&($timeout2-$timeout1)&"天",0) MsgBox(0,"测试提示","时间"&$timeout1&"",0) MsgBox(0,"测试提示","时间"&$timeout2&"",0) Exit Else MsgBox(0,"提示","剩余时间"&($timeout2-$timeout1)&"天",0) EndIf EndFunc
举报
#include <Date.au3> $iDateCalc = _DateDiff( 'D',"2020/02/01","2023/08/08") MsgBox( 4096, "", $iDateCalc & " 天")
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2024-12-23 12:55 , Processed in 0.072911 second(s), 19 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.