ngx
  • ngx lua获取时间戳的几种方式

    ngx lua获取时间戳的几种方式

    时间戳,几种,方式,技巧,ngx,在ngx_lua里,获取时间相关信息的方式大概有4种(见下面代码):print(string.format("s, s, s, s", ngx.time(), os.time(), os.clock(), ngx.now()))ngx.exit(200)-- 以上代码会输出:1486971340,...

  • 返回顶部