now

TIME, read-only.

Available inall subroutines.

The current time in RFC 1123 format (e.g., Sun, 16 Nov 2014 15:20:53 GMT).

Examples

Setting cookie expiration:

set resp.http.set-cookie = "foo=bar; secure; httponly; expires=" now + 1d;

In a synthetic response:

if (obj.status == 610) {
set obj.status = 410;
set obj.response = "Gone";
set obj.http.Content-Type = "text/plain; charset=utf8";
synthetic {"
Resource "} + req.url.path + {" gone as of "} + now + {"
"};
return (deliver);
}