Jump to content

date to timestamp


Adolfram

Recommended Posts

Posted

is there any way to convert a date format to timestamp? i tried to require someone's script but it said it was an unsafe function, also os class won't work

Posted (edited)
local r. = getRealTime()
	r.timestamp
	local timestring = ("%02d-%02d- %04d %02d-%02d-%02d):format( r.timestamp)

 

Edited by Dimos7
  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...