TIP #423: FORMATTING TIMESTAMPS WITH MILLISECONDS =================================================== Version: $Revision: 1.1 $ Author: Thomas Perschak State: Draft Type: Project Tcl-Version: 8.7 Vote: Pending Created: Friday, 07 June 2013 URL: https://tip.tcl-lang.org423.html Post-History: ------------------------------------------------------------------------- ABSTRACT ========== This TIP describes a change to *clock format* to allow it to handle timestamps with sub-second accuracy. RATIONALE =========== Currently, the *clock format* accepts only integer numbers for clock formatting. Since the *clock milliseconds* command was introduced in Tcl 8.5, this limitation seems a bit restrictive. In particular, the timestamp column in a number of databases (e.g., ) handles high-resolution timestamps by allowing full ISO 8601 times, which look like "04:05:06.789"; this would simplify database write operations. PROPOSAL ========== The *clock format* command should accept floating point values for timestamps. Another format letter should be added to *clock format* which puts the milliseconds into the output string; the millisecond value should not be written unless explicitly requested. COPYRIGHT =========== This document has been placed in the public domain. ------------------------------------------------------------------------- TIP AutoGenerator - written by Donal K. Fellows