PtokaX forum

Archive => Archived 5.0 boards => Request for scripts => Topic started by: ruler on 12 June, 2005, 19:41:16

Title: [LUA 5]get date and time?
Post by: ruler on 12 June, 2005, 19:41:16
hi
how can i get the present date and time with LUA 5?
i can get it in the old LUA but not the new, any ideas?
thanks
Title:
Post by: Dessamator on 12 June, 2005, 19:47:11
os.date("%X") -- time
os.date("%x") -- date
Title:
Post by: ruler on 12 June, 2005, 19:52:17
yup it works great, many thanks!
i did make a small error 1st but its now resolved, thanks again
Title:
Post by: Dessamator on 12 June, 2005, 21:27:17
ur welcome !