Skip to content

Commit

Permalink
Improve documentation for datetime %r and %T
Browse files Browse the repository at this point in the history
Current documentation is confusing/misleading by making `%r` and `%T`
look the same (both mention `hh:mm:ss`).

Attempt is made here to clarify the situation by referring to `%H` or
`%h` where appropriate instead.
  • Loading branch information
Michael Chirico authored and electrum committed Aug 5, 2020
1 parent 9ff4863 commit f4294ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions presto-docs/src/main/sphinx/functions/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,10 @@ Specifier Description
``%M`` Month name (``January`` .. ``December``)
``%m`` Month, numeric (``01`` .. ``12``) [#z]_
``%p`` ``AM`` or ``PM``
``%r`` Time, 12-hour (``hh:mm:ss`` followed by ``AM`` or ``PM``)
``%r`` Time of day, 12-hour (equivalent to ``%h:%i:%s %p``)
``%S`` Seconds (``00`` .. ``59``)
``%s`` Seconds (``00`` .. ``59``)
``%T`` Time, 24-hour (``hh:mm:ss``)
``%T`` Time of day, 24-hour (equivalent to ``%H:%i:%s``)
``%U`` Week (``00`` .. ``53``), where Sunday is the first day of the week
``%u`` Week (``00`` .. ``53``), where Monday is the first day of the week
``%V`` Week (``01`` .. ``53``), where Sunday is the first day of the week; used with ``%X``
Expand Down

0 comments on commit f4294ab

Please sign in to comment.