lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 19 March 2012 22:32, Alexander Gladysh <agladysh@gmail.com> wrote:
> On Tue, Mar 20, 2012 at 02:22, Matthew Wild <mwild1@gmail.com> wrote:
>> But if you are interested, you can find it at
>> http://code.matthewwild.co.uk/ndp/
>
> I'm interested, thank you.
>
> It worries me though that your tests rely on per-second difference. Do
> you handle leap years etc.?

Yes, as much as possible. The tests use a fixed reference point just
to make them easier to reproduce accurately. Some specific tests
around leap years, etc. could be added.

> Also, I see no tests on bad input. (Okay, okay, work in progress, no
> problem :-) )

You're right :)

>> I realise I've neglected licence info (MIT of course), so I'll add that now.
>
> That's the reason why this is not an open-source project, not hosting
> :-) Please do.

Done.

Regards,
Matthew

PS. Just saw your incoming mail. Indeed it would be good to parse
standard date formats as well as natural language ones. I know I
wasn't sure how to sensibly handle DD-MM / MM-DD issues, which is
probably one reason I avoided it.