You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2025/08/28 15:53:42 UTC

[Bug 69796] New: Support fractional seconds for duration (%T)

https://bz.apache.org/bugzilla/show_bug.cgi?id=69796

            Bug ID: 69796
           Summary: Support fractional seconds for duration (%T)
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: Other
                OS: other
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: mod_log_config
          Assignee: bugs@httpd.apache.org
          Reporter: calvin@cmpct.info
  Target Milestone: ---

It would be nice if mod_log_config supported fractional seconds for duration.
While %D and %{ms}T work, it's not as human readable. Other HTTP servers (like
Tomcat) and log consuming software (like GoAccess) support absolute seconds
with a fraction.

It's worth noting that %t does support the msec/usec_frac specifier, so you can
do things like "%{%Y-%m-%d %T}t.%{usec_frac}t" to get fractions of a second for
your timestamps. Doing it this way for %T would make sense, as it would allow
the user to decide if they want a fractional second, and to what precision. For
example, "%T.%{msec_frac}T" would have a millisecond fractional part.

https://bz.apache.org/bugzilla/show_bug.cgi?id=43296 previously requested this,
but was satisified by the existence of %D.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 69796] Support fractional seconds for duration (%T)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69796

--- Comment #1 from Calvin Buckley <ca...@cmpct.info> ---
Created attachment 40088
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=40088&action=edit
Adds fractional duration to %T (and refactoring to make it happen)

I've implemented this, currently based on trunk. I also have not yet updated
documentation in this patch. Let me know if this is appropriate.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 69796] Support fractional seconds for duration (%T)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69796

Calvin Buckley <ca...@cmpct.info> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |PatchAvailable

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 69796] Support fractional seconds for duration (%T)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69796

--- Comment #2 from Calvin Buckley <ca...@cmpct.info> ---
Created attachment 40089
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=40089&action=edit
Adds fractional duration to %T (and refactoring to make it happen) v2

Minor typo fixes to that patch.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org