Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2017-01-30
15:02 • New ticket [120922d1d4] clock format returns timezone clock scan doesn't... artifact: 2330b90724 user: anonymous

[clock format] returns timezone [clock scan] doesn't understand

Open120922d1d47336163a0d75d803d8fdbed2fff3ddCreated 10 years agoUpdated 10 years ago
Descriptionplain2017-01-30 15:02:41
Both of these work as expected:

  clock scan [clock format [clock seconds] -timezone EST]
  clock scan [clock format [clock seconds] -timezone :America/New_York]

this works:

  clock format [clock seconds] -timezone :Kwajalein

and returns "MHT" in the string. But this:

  clock scan [clock format [clock seconds] -timezone :Kwajalein]

fails with "unable to convert date-time string 'Tue Jan 31 02:18:26 MHT 2017": syntax error (characters 19-22)"

Chars 19-22 are " MHT".

This fails to work at all:

  clock format [clock seconds] -timezone MHT

"time zone MHT not found".

I tried some other ideas, such as "+12" for the timezone. That worked like ":Kwajalein" did--returned a time string, but wouldn't scan it. ("+5" failed to even return a string. Seems inconsistent...)

Tested 8.6.2 and 8.6.6, same behavior.
Log in (anonymous is fine) to add a comment.