Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2007-04-20
10:09 • Closed ticket [1582951fff]: Confusing remark in clock man-page plus 3 other ... artifact: 17bd9d9f14 user: kennykb
10:09 • Ticket [1582951fff]: 4 changes artifact: 9e4523f697 user: kennykb
2006-10-24
04:30 • Ticket [1582951fff]: 2 changes artifact: 537c8ce2b7 user: dkf
2006-10-23
15:11 • New ticket [1582951fff]. artifact: 7ad7ebc341 user: mpc_janssen

Confusing remark in clock man-page

Closed / Fixed1582951fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-10-23 15:11:06
In the clock man page it is stated that:

Daylight savings time correction is applied only when
the relative time is specified in units of days or
more, i.e. days, weeks, fortnights, months or years.
This means that when crossing the daylight savings time
boundary, different results will be given for clock
scan "1 day" and clock scan "24 hours":

With the new [clock scan] behaviour in 8.5, the result
for [clock scan "1 day"] and [clock scan "24 hours"]
will usually be different regardless of the DST
situation, because [clock scan "1 day"] will default to
midnight if no relative of absolute time is given.

() 1 % clock format [clock scan "1 day"]
Tue Oct 24 00:00:00 CEST 2006
() 2 % clock format [clock scan "24 hours"]
Tue Oct 24 17:08:38 CEST 2006
() 3 % 

This also means that the example given in the man page
is  not valid for 8.5 anymore.
Because of the new semantics on [clock scan "1 day"]
there can never be any DST confusion anymore, so it
seems the whole phrase + example can be removed.
dkf Ticket [1582951fff]: 2 changes [History diff]2006-10-24 04:30:35
kennykbplain2007-04-20 10:09:27
Logged In: YES 
user_id=99768
Originator: NO

You know, I'm not at all certain that remark ever *was* true.
I've removed it.
kennykb Closed ticket [1582951fff]. [History diff]2007-04-20 10:09:28
Log in (anonymous is fine) to add a comment.