9523| 12
|
[脚本] 获取当前日期,年、月、日和星期 |
#获得当前日期,年、月、日和星期
#0代表星期日 :global NowDate [/system clock get date] :global NowYear ([:pick $NowDate 7 11]) :global NowMonth ([:find jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec [:pick $NowDate 0 3]]+1) :global NowDay [:pick $NowDate 4 6] :if ([:pick $NowDate 4 5] = 0) do={:set NowDay [:pick $NowDate 5 6]} :local week "日一二三四五六" :set week ([:pick $week ($NowWeek*2) ($NowWeek*2+2)]) :local getT [/sys cl get time] :log warning ($NowYear . "年" . $NowMonth . "月" . $NowDay . "日 星期" . $week . " " . $getT)
购买主题
已有 23 人购买
本主题需向作者支付 2 铜板 才能浏览
| |
routeros
|
|
发表于 2015-4-21 16:07:10
|
显示全部楼层
| ||
routeros
|
||
| ||
routeros
|
||
发表于 2015-5-10 21:34:26
|
显示全部楼层
| ||
routeros
|
||
| ||
routeros
|
||
发表于 2015-5-11 21:43:56
|
显示全部楼层
| ||
routeros
|
||
|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )
GMT+8, 2024-11-5 22:45 , Processed in 0.102191 second(s), 9 queries , Gzip On, Redis On.
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.