From: Joel D. <jr...@io...> - 2010-05-15 21:08:36
|
On Sat, 15 May 2010, it would appear that Marc MERLIN wrote: > On Sat, May 15, 2010 at 03:53:01PM -0500, Joel Davidson wrote: >> On Sat, 15 May 2010, it would appear that Neil Cherry wrote: >> >>> On 05/15/2010 12:11 PM, Marc MERLIN wrote: >>>> On Sat, May 15, 2010 at 06:29:45AM -0400, Neil Cherry wrote: >>> >>>> Twilight is the other way around, it's X minutes after sunset where X >>>> depends on where you are on the earth and the season (up to 30 to 60 mn >>>> after sunset). >>>> >>>>> What you want is: >>>>> >>>>> if(time_now("$Time_Sunset-0:10")) { >>>> >>>> Neil, can you do math like this, does it really work without Date::Manip? >>> >>> I don't know, I have Date::Manip installed. I dodn't even give it any >>> thought as I've been using that for years. >> >> I've had that construct in my mh code for years as well, and near >> as I can tell it works fine. I seem to remember seeing it in >> Bruce's documentation someplace... > > Cool, it likely just feeds into Date::Manip somewhere then :) I guess. I just consider alot of mh to be magic. |