Simple Time Converter package

Name: Simple Time Converter
By AdamO on Discord

The Simple Time Converter package simply contains two functions.

GetUTCTime(year, month, day, time)

  • Returns the UTC time for a given year, month, day and time since 1st Jan 1970.

GetTimeString(time)

  • Returns a human-readable date and time for a given UTC time value. Ensure that you’re passing the UTC time in seconds, not milliseconds.

The script also allows you to print a debug UTC time from a given date / time, and to print a debug date/time from a given UTC time.

3 Likes