Jump to content

How can I convert a Unix/Epos Time to MM:DD:YYYY


FlyingSpoon

Recommended Posts

Posted (edited)
rT = getRealTime(1519257600)
year = rT.year + 1900
month = rT.month + 1
day = rT.monthday

local text = string.format("%02d/%02d/%04d", month, day, year)

Try this.

Edited by NeXuS™
  • Thanks 1

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...