2:bb0892bc9687 | 3:487f8d7b81b7 |
---|---|
3 local base; | 3 local base; |
4 for line in io.lines() do | 4 for line in io.lines() do |
5 if line:match("^base:%d+$") then | 5 if line:match("^base:%d+$") then |
6 base = tonumber(line:match("^base:(%d+)$")); | 6 base = tonumber(line:match("^base:(%d+)$")); |
7 else | 7 else |
8 local ret = ndp.when(line, 0, base); | 8 local ret = ndp.when(line, base); |
9 print(os.date("%c", ret).." ("..ret..")"); | 9 print(os.date("%c", ret).." ("..ret..")"); |
10 end | 10 end |
11 end | 11 end |
12 | 12 |