Advertisement
BugFix

Untitled

Oct 14th, 2013
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. local Makro = {
  2.         Date = function(self, v) return os.date("*t", os.time())[v] end,
  3.         SEC   = Makro:Date('sec'),
  4.         MIN   = Makro:Date('min'),
  5.         HOUR  = Makro:Date('hour'),
  6.         MDAY  = Makro:Date('mday'),
  7.         MONTH = Makro:Date('month'),
  8.         YEAR  = Makro:Date('year'),
  9.         WDAY  = Makro:Date('wday'),
  10.         YDAY  = Makro:Date('yday'),
  11.         ISDST = Makro:Date('isdst'),
  12.         }
  13.  
  14. local m = Makro
  15. print('Zeit', string.format("%02d:%02d:%02d", m.HOUR, m.MIN, m.MDAY))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement