[PATCH] Implement std.rfcdate

Federico Schwindt fgsch at lodoss.net
Thu Oct 11 10:54:02 CEST 2012


On Thu, Oct 11, 2012 at 9:24 AM, Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
> In message <20121011035912.cc6531acb4464292dde9d871 at lodoss.net>, "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.-



More information about the varnish-dev mailing list