/unit/docs/ |
H A D | changes.xsls | 63 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 D | Makefile | 18 CURDATE:=$(shell date +"%Y-%m-%d") 19 CURTIME:=$(shell date +"%H:%M:%S %z")
|
/unit/src/java/nginx/unit/ |
H A D | IncludeResponseWrapper.java | 28 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 D | Response.java | 207 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 D | Request.java | 219 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 D | test_go_application.py | 34 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 D | test_node_application.py | 57 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 D | test_perl_application.py | 33 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 D | test_php_application.py | 84 date = headers.pop('Date') 85 assert date[-4:] == ' GMT', 'date header timezone' 87 abs(self.date_to_sec_epoch(date) - self.sec_epoch()) < 5 589 date = errs[0].split('[')[0] 591 assert date != date2, 'date diff'
|
H A D | test_asgi_application.py | 42 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 D | test_ruby_application.py | 34 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 D | test_tls_sni.py | 20 def openssl_date_to_sec_epoch(self, date): argument 21 return self.date_to_sec_epoch(date, '%b %d %X %Y %Z')
|
H A D | test_java_application.py | 936 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 D | test_python_application.py | 42 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 D | test_tls.py | 15 def openssl_date_to_sec_epoch(self, date): argument 16 return self.date_to_sec_epoch(date, '%b %d %X %Y %Z')
|
/unit/test/unit/applications/ |
H A D | proto.py | 16 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 D | utils.js | 64 var date = entry[0].toLocaleString(); 69 args.splice(0, 1, formatString, date, uniqueID);
|
/unit/src/ |
H A D | nxt_http_request.c | 620 nxt_http_field_t *server, *date, *content_length; in nxt_http_request_header_send() local 634 if (r->resp.date == NULL) { in nxt_http_request_header_send() 635 date = nxt_list_zero_add(r->resp.fields); in nxt_http_request_header_send() 636 if (nxt_slow_path(date == NULL)) { in nxt_http_request_header_send() 640 nxt_http_field_name_set(date, "Date"); in nxt_http_request_header_send() 649 date->value = p; in nxt_http_request_header_send() 650 date->value_length = nxt_http_date_cache.size; in nxt_http_request_header_send() 652 r->resp.date = date; in nxt_http_request_header_send()
|
H A D | nxt_http_response.c | 25 offsetof(nxt_http_request_t, resp.date) },
|
H A D | nxt_http_proxy.c | 399 r->resp.date = field; in nxt_http_proxy_date()
|
H A D | nxt_http.h | 109 nxt_http_field_t *date; member
|
/unit/ |
H A D | LICENSE | 88 as of the date such litigation is filed.
|
/unit/pkg/deb/debian.module/ |
H A D | copyright.unit-jsc-common | 247 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 D | COPYRIGHT.unit-jsc-common | 247 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
|