Guest User

Untitled

a guest
Apr 23rd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. template = "Today is $date_string{ today }"
  2. result = cosmo.fill(template, {
  3. today = os.time(),
  4. date_string = function (args)
  5. return os.date("%B %d, %Y", args[1])
  6. end
  7. })
  8. print(result) -- Today is October 23, 2009
Add Comment
Please, Sign In to add comment