Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2024-12-19
22:07 • Closed ticket [f1388d2fda]: clock scan with just year returns timestamp in curre... artifact: 9f703696bc user: anonymous
22:06 • Ticket [f1388d2fda]: 4 changes artifact: d4d30ae1b2 user: anonymous
2022-10-12
17:24 • New ticket [f1388d2fda]. artifact: 7fe5aab01f user: anonymous

clock scan with just year returns timestamp in current year

Closed / Fixedf1388d2fda517fa3810310ad93b45d14d5367e96Created 4 years agoUpdated 2 years ago
Descriptionplain2022-10-12 17:24:39
System Info
Tcl 8.6.12 on OSX 12.6 Intel 64bit

To reproduce.

1. Open tclsh
2. Enter 'clock format [clock scan 1999 -format %Y] -format %Y'
3. It returns '2022' but I expect it to return '1999'

Similar issue
1. Open tclsh on 2022-10-12 
2. Enter 'clock format [clock scan 1999 -format %Y] -format "%Y-%m-%d %H:%M:%S"'
3. It returns '2022-10-12 00:00:00', I expected '1999-01-01 00:00:00'
anonymousplain2024-12-19 22:06:59
Not reproducible in Tcl 9.0.0, seems to be fixed there
anonymous Closed ticket [f1388d2fda]. [History diff]2024-12-19 22:07:20
Log in (anonymous is fine) to add a comment.