# HG changeset patch # User Matthew Wild # Date 1245622840 -3600 # Node ID 0cdb35f96cb66acce67a8beaef0339943b20e26b # Parent d6f0c12c152a599d92ab6797791a4024f991fc02 readdate: Show the start and finish of the consumed section of the input diff -r d6f0c12c152a -r 0cdb35f96cb6 readdate.lua --- a/readdate.lua Sun Jun 21 23:19:56 2009 +0100 +++ b/readdate.lua Sun Jun 21 23:20:40 2009 +0100 @@ -13,7 +13,7 @@ if start and finish then remaining = (line:sub(1, start)..line:sub(finish, -1)):gsub("^[%s%p]+", ""):gsub("[%s%p]+$", ""); end - print(os.date("%c", ret).." ("..ret..")"..((#remaining>0 and (": "..remaining)) or "")); + print(os.date("%c", ret).." ("..ret..")"..((#remaining>0 and (": "..remaining)) or "").." ["..start..","..finish.."]"); end end