Ralf S. Engelschall schrieb:
On Sun, Apr 01, 2007, Klaus Hartl wrote:
[...]
2. specify the expiry time with units as in
$.cookie("name", "value", { expires: "2m" })
instead of having to pass a full pre-established Date() object.
You don't have to. If you pass a number its the days until epiration:
$.cookie("name", "value", { expires: "365" });
Yes, but supports the "days" unit only, doesn't it?
I usually have to specify times in the minute and hour range...
I see. I still don't want to add a date parser to the plugin. I think
that is not its purpose and the benefit wouldn't outweigh the added
overhead. That also would kind of duplicate already existing functionality.
-- Klaus