[ 
https://issues.apache.org/jira/browse/TS-4096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15082225#comment-15082225
 ] 

ASF GitHub Bot commented on TS-4096:
------------------------------------

Github user shukitchan commented on the pull request:

    https://github.com/apache/trafficserver/pull/394#issuecomment-168871196
  
    @jpeach 
    Yes. the time is still in seconds. But instead of returning an integer all 
the time, it is now a "lua_Number", which is like a "double". 
    
    In some sense, the data type returned is still the same ("lua_Number"). The 
unit is also not changed. 
    should I still add a new API instead? since all the operations on the 
return value will still work the same way. 


> ts_lua - ts.now() should return subsecond information
> -----------------------------------------------------
>
>                 Key: TS-4096
>                 URL: https://issues.apache.org/jira/browse/TS-4096
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Lua, Plugins
>            Reporter: Kit Chan
>            Assignee: Kit Chan
>             Fix For: 6.2.0
>
>
> Currently ts.now() returns the unix timestamp in seconds. 
> But we should be able to return milliseconds as well.
> It should be similar to how ngx.now() works.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to