Lua time replacements - VanaDev/Vana GitHub Wiki

All replacement identifiers are case-sensitive.

  • %yy = short year (99, 00, 10)
  • %YY = long year (1999, 2000, 2010)
  • %mm = integer month (1, 2, 12)
  • %MM = integer month (01, 02, 12)
  • %oo = string month (Jan, Feb, Dec)
  • %OO = string month (January, February, December)
  • %dd = integer date (1, 2, 30)
  • %DD = integer date (01, 02, 30)
  • %aa = string date (Mon, Tues, Sat)
  • %AA = string date (Monday, Tuesday, Saturday)
  • %hh = 12-hour (1, 2, 7)
  • %HH = 12-hour (01, 02, 07)
  • %mi = 24-hour (8, 12, 17)
  • %MI = 24-hour (08, 12, 17)
  • %ii = minute (7, 23, 54)
  • %II = minute (07, 23, 54)
  • %ss = second (7, 34, 44)
  • %SS = second (07, 34, 44)
  • %ww = am/pm
  • %qq = a/p
  • %WW = AM/PM
  • %QQ = A/P
  • %zz = timezone (+0600, -0800, 0000)
⚠️ **GitHub.com Fallback** ⚠️