--- Retrieve time data.local data = utils.dates.get_timestamp()--- Print time data.print('Timestamp:', data.ts)print('Formatted Timestamp:', data.formatted
convert_timestamp()
Converts a UNIX timestamp to a human readable date and time.
Function
localfunctionconvert_timestamp(timestamp)return { date =os.date('%Y-%m-%d', timestamp), time =os.date('%H:%M:%S', timestamp), formatted =os.date('%Y-%m-%d %H:%M:%S', timestamp) }endexports('dates_convert_timestamp', convert_timestamp)utils.dates.convert_timestamp = convert_timestamp