Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 07caefb7d6dcb63bd0fd76dd690bbee28196311c
Ticket: 225965ffffffffffffffffffffffffffffffffff
[clock format $date -format "%Y-%W"] fails on w 53
User & Date: kennykb on 2001-02-09 03:21:24
Changes

  1. icomment:
    This is actually a documentation problem.  %W is defined in 'strftime' to be the week
    number of the year, with the first Monday of the year defined to begin week 1.  The
    correct format specifier for ISO-8601 week-of-year is %V.  (There is also a %U, which
    defines week 1 to begin on the first Sunday of the year.)
    
    compat/strftime.c contains correct code for %V, but the man page is missing it.
    (It's also missing a bunch of the other formats).
    
    
  2. login: "kennykb"
  3. mimetype: "text/plain"
  4. username: "kennykb"