For Agents | Documentation index: https://create.roblox.com/docs/llms.txt | Engine API index: https://create.roblox.com/docs/reference/engine/llms.txt
学习
库
/
os
中文(简体)
反馈
引擎库
os
*
此内容使用人工智能(Beta)翻译,可能包含错误。若要查看英文页面,请点按
此处
。
摘要
职能
clock
()
:
number
date
(
formatString:
string
,
time:
number
)
:
Dictionary
difftime
(
t2:
number
,
t1:
number
)
:
number
time
(
time:
table
)
:
number
API 参考
职能
clock
os.clock
(
)
:
number
返回
number
提供反馈
date
os.date
(
formatString
:
string
,
time
:
number
)
:
Dictionary
参数
formatString
:
string
time
:
number
返回
Dictionary
提供反馈
difftime
os.difftime
(
t2
:
number
,
t1
:
number
)
:
number
参数
t2
:
number
t1
:
number
返回
number
提供反馈
time
os.time
(
time
:
table
)
:
number
参数
time
:
table
默认值:UTC time
返回
number
提供反馈
跳转到
▼
os
摘要
职能
职能
clock()
date()
difftime()
time()
中文(简体)
反馈
©2026 Roblox Corporation、Roblox、Roblox 标志及 Powering Imagination 是我们在美国及其他国家或地区的注册与未注册商标。
条款
·
隐私政策
·
辅助功能
·
支持
中文(简体)