摘要:
Nginx 中ngx_gmtime函数小析最近开始看nginx原码,从main()函数开始,看到ngx_gmtime()函数时,发现有些地方看不明白.voidngx_gmtime(time_t t, ngx_tm_t *tp){ ngx_int_t yday; ngx_uint_t n, sec, min, hour, mday, mon, year, wday, days, leap; /* the calculation is valid for positive time_t only */ n = (ngx_uint_t) t; days = n / 86400; /* Jaunary 阅读全文
浙公网安备 33010602011771号