Opened 5 years ago

Last modified 3 weeks ago

#243 closed enhancement

Dates with 2-digit year values after 2129 are assumed to be in the 20th century (e.g, 1930). — at Initial Version

Reported by: Gary Dixon Owned by: Eric Swenson
Priority: major Milestone: MR12.9
Component: General Version: MR12.7
Keywords: Cc:

Description

The Y2K change for interpreting 2-digit year numbers will have problems for years later than 2129. A date like 30-12-18 would be interpreted as 1930-12-18 according to algorithm used in the current convert_date_to_binary_ code. It may be appropriate to interpret years before 1960 (the year of early Multics design papers) as being in the 21 century, rather than in the 20th century.

The current code treats all 2-digit years < 30 as being in 21st century (e.g., 2125), and years in range 30 to 99 as being in the 20th century (e.g., 1950).

The following example shows where the breakpoint lies in the current code:

clock ^yc-^my-^dm 30-10-12
30-10-12
r 11:55 0.059 0 level 2

clock iso_date [clock ^yc-^my-^dm 30-10-12]
1930-10-12
r 11:55 0.377 0 level 2

clock ^yc-^my-^dm 29-10-15
29-09-15
r 11:56 0.054 0 level 2

clock iso_date [clock ^yc-^my-^dm]
2029-09-15
r 11:56 0.345 0 level 2


Change History (0)

Note: See TracTickets for help on using tickets.