小工具整理

This commit is contained in:
Abin
2025-07-31 16:05:55 +08:00
commit 1011eb44e1
566 changed files with 267142 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
function local_sys_time= -----获取时间的函数,返回值是字符串
(
local local_time=timeStamp()
local shijian=(((local_time/1000.0)/60.0)/60.0)
local xiaoshi=shijian as integer
local fenzhong=((shijian-xiaoshi)*60) as integer
local kkk=(local_time/1000.0)-xiaoshi*60.0*60.0-fenzhong*60.0
local miao=((local_time/1000.0)-xiaoshi*60.0*60.0-fenzhong*60.0 )as integer
local haomiao=((kkk-miao)*100) as integer
local h=xiaoshi as string
local m=fenzhong as string
local s=miao as string
local f=haomiao as string
return ("当前时间为:"+h+"小时"+m+"分钟"+s+"秒"+f)
)
a=local_sys_time()