LUA在TXT中如何获取当前时间

我想在TXT中获取当前系统时间用的是LUA 但是我百度上找了一些比如 local ntime = os.time

print(ntime)

之类的根本不可以。 不知道怎么回事

os.time() 是个方法