Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9033833640d2c7601e881b3071f040ed0d32fc21
Ticket: 958bc05fbe38c74f73589eb48522a5ea8d96cc4a
"clock format" with "%R" and "%r" mismatch
User & Date: Martin0815 on 2014-05-13 07:45:45
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/html"
  4. comment changed to:
    <h3>Bug</h3>
    
    The bug is, that the <code>%r</code> (AM/PM) clock format result contains seconds, while the format result with <code>%R</code> does <strong>not</strong> contain seconds.
    
    <h3>Excerpt from the docs:</h3>
    
    <blockquote>
    <dl>
    <dt>%r</dt>
    <dd>On output, produces a locale-dependent time of day representation on a 12-hour clock. On input, accepts whatever %r produces.</dd>
    <dt>%R</dt>
    <dd>On output, produces a locale-dependent time of day representation on a 24-hour clock. On input, accepts whatever %R produces.</dd>
    </dl>
    </blockquote>
    
    <h3>Example code:</h3>
    
    <pre><code>
        % info patch
        8.6.1
        % set secs 986140861
        986140861
        % clock format $secs -format %R
        18:01
        % clock format $secs -format %r
        06:01:01 pm
    </code></pre>
    
  5. foundin changed to: "8.6.1"
  6. is_private changed to: "0"
  7. login: "Martin0815"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "be10c68edb35fa3f93c8cac6f2c0d27dc3933920"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "Martin0815"
  14. subsystem changed to: "16. Commands A-H"
  15. title changed to: ""clock format" with "%R" and "%r" mismatch"
  16. type changed to: "Bug"