Home
last modified time | relevance | path

Searched refs:date (Results 1 – 25 of 25) sorted by relevance

/unit/docs/
H A Dchanges.xsls63 X:var date_ = { !getdate(date="@date", curdate="$curdate") }
65 X:var pday = { !padded_day(date="$date_") }
66 X:var dow = { !day_of_week(date="$date_") }
206 X:template day_of_week(date) {
207 X:param year = "substring-before($date, '-')";
208 X:param month = "substring-before(substring-after($date, '-'), '-')";
209 X:param day = "substring-after(substring-after($date, '-'), '-')";
222 X:template padded_day(date) {
260 X:template getdate(date, curdate) {
262 X:when "$date=''" {
[all …]
H A DMakefile18 CURDATE:=$(shell date +"%Y-%m-%d")
19 CURTIME:=$(shell date +"%H:%M:%S %z")
/unit/src/java/nginx/unit/
H A DIncludeResponseWrapper.java28 public void addDateHeader(String name, long date) in addDateHeader() argument
30 trace("addDateHeader: " + name + ": " + date); in addDateHeader()
52 public void setDateHeader(String name, long date) in setDateHeader() argument
54 trace("setDateHeader: " + name + ": " + date); in setDateHeader()
H A DResponse.java207 public void addDateHeader(String name, long date) in addDateHeader() argument
209 trace("addDateHeader: " + name + ": " + date); in addDateHeader()
215 String value = dateToString(date); in addDateHeader()
221 private static String dateToString(long date) in dateToString() argument
223 Date dateValue = new Date(date); in dateToString()
454 public void setDateHeader(String name, long date) in setDateHeader() argument
456 trace("setDateHeader: " + name + ": " + date); in setDateHeader()
462 String value = dateToString(date); in setDateHeader()
H A DRequest.java219 Date date = null; in parseDate() local
220 for (int i = 0; (date == null) && (i < formats.length); i++) { in parseDate()
222 date = formats[i].parse(value); in parseDate()
227 if (date == null) { in parseDate()
230 return date.getTime(); in parseDate()
/unit/test/
H A Dtest_go_application.py34 date = headers.pop('Date')
35 assert date[-4:] == ' GMT', 'date header timezone'
37 abs(self.date_to_sec_epoch(date) - self.sec_epoch()) < 5
H A Dtest_node_application.py57 date = headers.pop('Date')
58 assert date[-4:] == ' GMT', 'date header timezone'
60 abs(self.date_to_sec_epoch(date) - self.sec_epoch()) < 5
H A Dtest_perl_application.py33 date = headers.pop('Date')
34 assert date[-4:] == ' GMT', 'date header timezone'
36 abs(self.date_to_sec_epoch(date) - self.sec_epoch()) < 5
H A Dtest_php_application.py85 date = headers.pop('Date')
86 assert date[-4:] == ' GMT', 'date header timezone'
88 abs(self.date_to_sec_epoch(date) - self.sec_epoch()) < 5
581 date = errs[0].split('[')[0]
583 assert date != date2, 'date diff'
H A Dtest_asgi_application.py42 date = headers.pop('Date')
43 assert date[-4:] == ' GMT', 'date header timezone'
45 abs(self.date_to_sec_epoch(date) - self.sec_epoch()) < 5
H A Dtest_ruby_application.py34 date = headers.pop('Date')
35 assert date[-4:] == ' GMT', 'date header timezone'
37 abs(self.date_to_sec_epoch(date) - self.sec_epoch()) < 5
H A Dtest_tls_sni.py20 def openssl_date_to_sec_epoch(self, date): argument
21 return self.date_to_sec_epoch(date, '%b %d %X %Y %Z')
H A Dtest_variables.py166 date = self.search_in_log(
171 self.date_to_sec_epoch(date, '%d/%b/%Y:%X %z')
H A Dtest_java_application.py936 date = 'Fri, 15 Mar 2019 14:45:34 GMT'
940 'X-Header': date,
950 assert headers['X-Get-Date'] == date, 'get date header'
H A Dtest_python_application.py42 date = headers.pop('Date')
43 assert date[-4:] == ' GMT', 'date header timezone'
45 abs(self.date_to_sec_epoch(date) - self.sec_epoch()) < 5
H A Dtest_tls.py14 def openssl_date_to_sec_epoch(self, date): argument
15 return self.date_to_sec_epoch(date, '%b %d %X %Y %Z')
/unit/test/unit/applications/
H A Dproto.py16 def date_to_sec_epoch(self, date, template='%a, %d %b %Y %X %Z'): argument
17 return time.mktime(time.strptime(date, template))
/unit/src/nodejs/unit-http/
H A Dutils.js64 var date = entry[0].toLocaleString();
69 args.splice(0, 1, formatString, date, uniqueID);
/unit/src/
H A Dnxt_http_response.c25 offsetof(nxt_http_request_t, resp.date) },
H A Dnxt_http_request.c626 nxt_http_field_t *server, *date, *content_length; in nxt_http_request_header_send() local
640 if (r->resp.date == NULL) { in nxt_http_request_header_send()
641 date = nxt_list_zero_add(r->resp.fields); in nxt_http_request_header_send()
642 if (nxt_slow_path(date == NULL)) { in nxt_http_request_header_send()
646 nxt_http_field_name_set(date, "Date"); in nxt_http_request_header_send()
655 date->value = p; in nxt_http_request_header_send()
656 date->value_length = nxt_http_date_cache.size; in nxt_http_request_header_send()
658 r->resp.date = date; in nxt_http_request_header_send()
H A Dnxt_http_proxy.c399 r->resp.date = field; in nxt_http_proxy_date()
H A Dnxt_http.h109 nxt_http_field_t *date; member
/unit/
H A DLICENSE88 as of the date such litigation is filed.
/unit/pkg/deb/debian.module/
H A Dcopyright.unit-jsc-common247 under Section 2(b) shall terminate as of the date such litigation is filed.
373 as of the date such litigation is filed.
586 effective on the date Initial Developer first distributes
623 effective on the date Contributor first distributes or
/unit/pkg/rpm/rpmbuild/SOURCES/
H A DCOPYRIGHT.unit-jsc-common247 under Section 2(b) shall terminate as of the date such litigation is filed.
373 as of the date such litigation is filed.
586 effective on the date Initial Developer first distributes
623 effective on the date Contributor first distributes or