Artifacts Associated With Ticket 1545823
Ticket change [5f5460fceb] (rid 115801) by ctasada on 2006-08-24 09:17:22:
- assignee initialized to: "kennykb"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Hi guys, Playing with the clock command using 8.5a4 I've found a new bug. Here is the example: (Bin) 7 % set timein [clock seconds] 1156410538 (Bin) 8 % set timeout [clock scan "1 hour" -base $timein] 1156414138 (Bin) 9 % set timeout [clock scan "60 minutes" -base $timein] 1156414138 (Bin) 10 % set timeout [clock scan "24 hour" -base $timein] 1156496938 (Bin) 11 % set timeout [clock scan "1440 minutes" -base $timein] 1156496938 (Bin) 12 % set timeout [clock scan "1 day" -base $timein] 1156456800 As you can see, the answers for "1 hour" and "60 minutes" are the same, and the answers for "24 hour" and "1440 minutes" are also ok, but the "1 day" is different. Why? And not, I'm not crossing any "daylight savings time boundary" Cheers,
- foundin initialized to: "obsolete: 8.5a4"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "ctasada"
- subsystem initialized to: "06. Time Measurement"
- title initialized to: "Clock scan "1 day" is wrong"
- type initialized to: "Bug"
Ticket change [709e79068a] (rid 100515) by wildcard_25 on 2006-08-24 17:04:07:
- icomment:
Logged In: YES user_id=596509 It works as documented. "If a date or day is specified, and no absolute or relative time is given, midnight is used." (Tcl85) 1 % clock scan "1 day" 1156428000 (Tcl85) 2 % clock scan "24 hours" 1156499468 (Tcl85) 3 % clock add [clock seconds] 24 hours 1156499480 (Tcl85) 4 % clock add [clock seconds] 1 day 1156499494
- login: "wildcard_25"
- mimetype: "text/plain"
- username: "wildcard_25"
- icomment:
Ticket change [ea5eb4786f] (rid 103367) by ctasada on 2006-08-24 17:21:59:
- icomment:
Logged In: YES user_id=340696 Probably I'm misunderstanding the documentation but how can I specify an absolute or relative time in [clock scan "1 day" -base $timein]? Anyway I missed this line :(
- login: "ctasada"
- mimetype: "text/plain"
- username: "ctasada"
- icomment:
Ticket change [3a74c4c8f3] (rid 112565) by wildcard_25 on 2006-08-24 17:46:21:
- icomment:
Logged In: YES user_id=596509 "1 hour" is a relative time. "08:00 PM" is absolute. As [clock scan "1 day"] has no hours, minutes or seconds specified, it uses midnight as the hour of day that is 1 day from now. If I wanted to add "x days" to the current time then I would use [clock add].
- login: "wildcard_25"
- mimetype: "text/plain"
- username: "wildcard_25"
- icomment:
Ticket change [1f022e6a74] (rid 91074) by ctasada on 2006-08-24 17:57:27:
- closedate changed to: "2006-08-24T10:57:27"
- closer changed to: "ctasada"
- icomment:
Logged In: YES user_id=340696 Ooook, I completely misunderstood the documentation. Thanks a lot. I close the bug and mark it as invalid :)
- login: "ctasada"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "ctasada"