https://blog.csdn.net/ljfrocky/article/details/55052079
print(string.format("%s, %s, %s, %s", ngx.time(), os.time(), os.clock(), ngx.now()))
ngx.exit(200)
输出:1486971340, 1486971340, 209.77, 1486971340.422
https://www.xadocker.cn/archives/1558.html
local time_str = ngx.http_time(ngx.time()+28800)
#Wed, 09 Jun 2021 10:04:47 GMT
local week,day,month,year,hour,min,sec=string.match(time_str,"(%w+), (%d+) (%w+) (%d+) (%d+):(%d+):(%d+)")