Your first "recipe" is nicer because it doesn't involve UNIX time (explicitly) at all. But you did say that the second was also necessary. So I assume you already have some idea about its usefulness?
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2003-06-02 00:32: Subject: Re: Pike Cookbook
that is what made me try Seconds, yes, but on what basis can i assume that the integer being accepted by Calendar.Second(), is unix time_t?
other systems count time differently, and pike being crossplatform, is what makes this non-abvious.
but that is not the problem, and neither do i want to make this into another "docs are bad" discussion, i only wanted to assess the worthiness of this example for a pike cookbook.
greetings, martin.
/ Brevbäraren