Overview
| Artifact ID: | 5f7ae58d56dc03778d2a0b05a5dceca9dd4f1a55 |
|---|---|
| Ticket: | 219413ffffffffffffffffffffffffffffffffff
clock can't handle dates > year 2038 |
| User & Date: | nobody on 2000-10-26 05:12:37 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 6360 Bug Version: 8.2.3 SubmitDate: '2000-10-16' LastModified: '2000-10-25' Severity: SER Status: UnAssn Submitter: techsupp OS: Windows NT Machine: Intel pentium III FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Name: Steve Carter ReproducibleScript: Run the script below and it fails with the following error message. "unable to convert date-time string "00:00:00 01/01/2037 1 years" # Set date formats set sdate_format "%H:%M:%S %m/%d/%Y" set cdate_format "%d %b %Y %H:%M:%S" # Set start date in standard format mm/dd/yyyy set start_sdate "01/01/2000" # Set time "increment" set period_units "years" set period_len 1 set num_periods 60 set base_date [clock scan $start_sdate -gmt 1] # Convert to integer date set start_idate [clock scan $start_sdate -base $base_date -gmt 1] # Convert to character date set start_cdate [clock format $start_idate -format $cdate_format -gmt 1] puts "Start date is $start_cdate" # Initialize date arrays set sdate(0) $start_sdate set idate(0) $start_idate set cdate(0) $start_cdate # Loop for each time step for {set i 1} {$i <= $num_periods} {incr i} { set last_i [expr $i - 1] set idate($i) [clock scan "$sdate($last_i) $period_len $period_units" -base $base_date -gmt 1] set cdate($i) [clock format $idate($i) -format $cdate_format -gmt 1] set sdate($i) [clock format $idate($i) -format $sdate_format -gmt 1] puts "Period $i ends at $cdate($i)" } puts "Complete" ObservedBehavior: Not being able to increment dates beyond 2038 is undesirable DesiredBehavior: Continue to increment dates ad-infinitum - foundin changed to: "final: 8.2.3"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to: "clock can't handle dates > year 2038"
- type changed to: "Bug"