Tcl Date Routines don't handle ISO date formats
Closed / Invalid217854ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:44:55
OriginalBugID: 1957 Bug
Version: 8.0.5
SubmitDate: '1999-04-28'
LastModified: '1999-08-07'
Severity: SER
Status: Closed
Submitter: pat
ChangedBy: hobbs
RelatedBugIDs: 847
OS: Windows NT
Machine: X86
FixedDate: '2000-10-25'
ClosedDate: '1999-08-07'
Name:
Matt Newman
CVS:
Apr 28th 1999
Extensions:
the kitchen sink :-)
CustomShell:
Mods to tclTimer.c to support objects (still waiting for this to be adopted by scriptics :-(
Comments:
There are a number of very comprehensive documents from ISO describing
valid date formats. The most common (and recommended date formats are
not supported by Tcl)
E.g.
YYYYMMDD<space optional>HH:MM:SS
or
YYYYMMDD'T'HH:MM:SS
or
YYYY-MM-DD HH:MM:SS (a common one w/ ODBC)
*PLEASE PLEASE PLEASE* fix the TclGetDate routines to handle these -
there have been contributed patches over the last six years (or so)
covering this stuff and there are widely available implementations that
cope with the existing formats plus this stuff. I will help if Scriptics
are willing.
ReproducibleScript:
set date "19991003 12:22"
set sec [clock scan $date]
ObservedBehavior:
Can't decode date
DesiredBehavior:
For it to work with all *common* ISO date formats.
welch Closed ticket [217854ffff].
[History diff]2000-10-26 07:59:47
dgp Open ticket [217854ffff].
[History diff]2001-04-13 23:25:38
dgp Closed ticket [217854ffff].
[History diff]2001-04-13 23:26:03
Log in (anonymous is fine) to add a comment.