rfc3339date.lua 167 B

12345
  1. local time = os.time()
  2. local timestamp = os.date('%F %T', time)
  3. local timezone = os.date('%z', time):gsub('^([+-]%d%d)(%d%d)$', '%1:%2')
  4. print(timestamp .. timezone)