Tcl Source Code

View Ticket
Login
Ticket UUID: 3541726
Title: Clock Scan with year/ year/month
Type: Bug Created on: 2012-07-09 20:12:47
Submitter: staringblind Assigned to: kennykb
Subsystem: 06. Time Measurement Severity:
Priority: 5 Medium Last modified: 2012-07-09 20:12:47
Status: Open Closed by:
Resolution: None Closed on:
Version: obsolete: 8.5.11
Description:
When using clock scan on only a year/month or year the reformatting will default to the current year or current year/month.

% set date [clock scan 2009 -format %Y]
1341810000
% puts [clock format $date -format %Y]
2012


% set date [clock scan 2009/09 -format %Y/%m]
1341810000
% puts [clock format $date -format %Y/%m]
2012/07

As far as I can tell this is not system dependant. Tested on Ubuntu Precise, Fedora 17 and Windows 7, with patch level 8.5.11. 

The expected behavior is to show the year or year/month that was originally scanned.