On Thu, Oct 11, 2012 at 9:24 AM, Poul-Henning Kamp <[email protected]> wrote:
> In message <[email protected]>, "Federico G. 
> S
> chwindt" writes:
>
> I'm not sure I understand what you are trying to do here, and I wonder
> if you're not doing it backwards ?
>
> Wouldn't a
>         DOUBLE std.unixtime(TIME)
> make more sense ?

That's why I wrote at the bottom:

- Return a date for `now' and `now + duration' and add a way to
convert both cases to a time

The only reason I went for this approach is that as per # 2:

2. Correctly treats TIME + DURATION as a TIME as per
https://www.varnishcache.org/docs/trunk/phk/vcl_expr.html

f.-

_______________________________________________
varnish-dev mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Reply via email to