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