Skip to content

Instantly share code, notes, and snippets.

@btbytes
Created January 8, 2010 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btbytes/272082 to your computer and use it in GitHub Desktop.
Save btbytes/272082 to your computer and use it in GitHub Desktop.
require("date") -- luaforge.net/projects/date/
a = date(2010,1,8)
print("Date : ", a)
print('GMT TIME: '..os.date("!%Y-%m-%dT%H:%M:%S"))
print(os.date())
gmt = os.date("!%c")
gmt=date()
print(gmt:fmt("${iso}"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment