On Mon, Jul 09, 2012 at 11:13:13AM -0500, Dave Rolsky wrote:
> I don't think this is a very good way to do datetime math, which is
> why the docs discourage it.
> 
> That said, I'm not sure having yet another module to do essentially
> the same thing is a great idea.

Well, notably this one can just wrap timegm(3) in the common case that
it exists. GNU libc, BSD and Windows all provide the functionality,
either under this name, or renamed (on Windows it is called _mkgmtime).
So in most cases it should just wrap the C function.

> You can make Time::Local do what you want by calling timegm_nocheck.

Yes, I'm aware that currently it appears to work, but the documentation
does state it specifically is undefined what happens when you do that.
So I don't want to rely on things the documentation says I shouldn't
rely on, even if the current implementation makes it OK.

-- 
Paul "LeoNerd" Evans

leon...@leonerd.org.uk
ICQ# 4135350       |  Registered Linux# 179460
http://www.leonerd.org.uk/

Attachment: signature.asc
Description: Digital signature

Reply via email to