Knowledge (XXG)

Date windowing

Source 📝

425:
The other common behavior that Windows users will experience involves dates in spreadsheet programs such as Microsoft Excel, Lotus 1-2-3, and Corel Quattro Pro. If you have typed all your dates with four-digit years (such as 1/1/1999 and 1/1/2000), you should be fine. But if you have typed two-digit
385:
By defining a pivot year, you direct APPX to determine what century a particular year belongs to. For example, if the pivot year is set to 35, then any date field with a year greater than 35 will be assumed by APPX to have a century value of 19. Any date field with a year less than or equal to the
230:
Using windowing, programmers instruct software to guess the century for dates that fall within a specific "window" of time, such as the next three decades. The computer interprets the year based on a future so-called hinge date, or pivot, that programmers choose
264:
A pivot year, also known as date windowing, takes a two-digit year and expands it to determine which century the year is in. Typically the year is converted to either a full four-digit year or into the year-1900 format, as appropriate to the application at
96:
Those born 2031 are not likely to be donating before 2049, by which time those born 1931 would be 118 years old, and unlikely current donors. DEFCENT and YRTHRESH for a file containing present students and recent graduates would use different values.
46:
For organizations and institutions with data that is only decades old, a "date windowing" solution was considered easier and more economical than the massive conversions and testing required when converting two-digit years into four-digit years.
164:
that set the fixed pivot year for the system. Any year after the pivot year will belong to this century (the 21st century), and any year before or equal to the pivot year will belong to last century (the 20th century).
318:
The choice of the actual pivot year was made by companies based on their historical records. It was in no way an industry standard, nor was this approach in any way professionally recommended. But it would work for a
361: 168:
Some products, such as Microsoft Excel 95 used a window of years 1920–2019 which had the potential to encounter a windowing bug reoccurring only 20 years after the year 2000 problem had been addressed.
176:
operating system uses a window of 1940-2039 for date formats with a two-digit year. In the 7.5 release of the operating system, an option was added to use a window of 1970-2069 instead.
65:
Closest date: Three different interpretations (last century, this century, and next century) are compared to the current date, and the closest date is chosen from the three.
157:
The above code establishes a fixed date window of 1960 through 2059. It assumes that none of the receipt dates are before 1960, and should work until January 1, 2060.
369: 399: 244: 206: 84:
This flexibility gave the best of all three major mechanisms: A school could have file RecentDonors set a field named BirthDate to use
461: 22:
is a method by which dates with two-digit years are converted to and from dates with four-digit years. The year at which the
332: 105:
Below is a simple example of fixed date windowing COBOL code, often used to figure the century for ordinary business dates.
301: 438: 62:
Sliding pivot year: determined by subtracting some constant from the current year, typically used for birth dates.
185: 288:
Windowing is a long-term fix that should keep legacy systems working fine until the software is redesigned...
491: 409: 81:"Century Aware" implementation allowed the user to focus on field-specific and file-specific settings. 161: 74: 248: 31: 214: 16:
Running software in real time for display and reporting six-digit date into eight-digit date
426:
years (such as 1/1/29), you may be surprised at the way different programs handle the date.
485: 35: 30:
of the date window. Date windowing was one of several techniques used to resolve the
349:
expanded version of the sliding windows technique .. File and field level settings
336: 305: 282:
Raymond B. Howard. "The Case for Windowing: Techniques That Buy 60 Years".
23: 55:
There are three primary methods used to determine the date window:
173: 78: 59:
Fixed pivot year: simplest to code, works for most business dates.
386:
pivot year will be assumed by APPX to have a century value of 20.
462:"Announcement Day: IBM Lifts The Veil On IBM i 7.5 And 7.4 TR6" 404: 400:"COMPUTING Spot & fix Y2K problems in Windows 9x & NT" 90:
DEFCENT=19 YRTHRESH=31, covering those born 1931-2030.
439:"New base year support for 2-digit year date formats" 335:. Information Builders. p. 4. Archived from 277: 275: 273: 207:"Temporary Y2K fix may last only a generation" 188:, a form of windowing for sequential counters 8: 245:"The Best of Dates, The Worst Of Dates" 197: 398:Livingston, Brian (9 February 1999). 7: 300:McNish, Larry (30 December 2019). 14: 243:Healton, Gilbert (12 July 2014). 1: 205:Bridis, Ted (16 March 1999). 302:"The Y2K Pivot Year Problem" 508: 460:Alex Woodie (3 May 2022). 333:"Solving the Date Dilemma" 186:Serial number arithmetic 107: 362:"Chapter 1: Pivot Year" 36:legacy computer systems 368:. 2003. Archived from 26:changes is called the 162:environment variables 375:on 22 September 2012 146:RECEIPT-DATE-CENTURY 131:RECEIPT-DATE-CENTURY 75:Information Builders 339:on 27 December 1996 254:on 13 February 2020 366:APPX Software, Inc 331:Kruskopfs, Peter. 308:on 15 January 2020 160:Some systems have 441:. IBM. 3 May 2022 284:Year/2000 Journal 113:RECEIPT-DATE-YEAR 51:Windowing methods 32:year 2000 problem 499: 477: 476: 474: 472: 457: 451: 450: 448: 446: 435: 429: 428: 422: 420: 414: 408:. Archived from 395: 389: 388: 382: 380: 374: 358: 352: 351: 346: 344: 328: 322: 321: 315: 313: 304:. Archived from 297: 291: 290: 286:(Mar/Apr 1998). 279: 268: 267: 261: 259: 253: 247:. Archived from 240: 234: 233: 227: 225: 219: 213:. Archived from 202: 153: 150: 147: 144: 141: 138: 135: 132: 129: 126: 123: 120: 117: 114: 111: 507: 506: 502: 501: 500: 498: 497: 496: 482: 481: 480: 470: 468: 459: 458: 454: 444: 442: 437: 436: 432: 418: 416: 412: 397: 396: 392: 378: 376: 372: 360: 359: 355: 342: 340: 330: 329: 325: 311: 309: 299: 298: 294: 281: 280: 271: 257: 255: 251: 242: 241: 237: 223: 221: 220:on 4 March 2016 217: 204: 203: 199: 195: 182: 155: 154: 151: 148: 145: 142: 139: 136: 133: 130: 127: 124: 121: 118: 115: 112: 109: 103: 72: 53: 44: 17: 12: 11: 5: 505: 503: 495: 494: 484: 483: 479: 478: 452: 430: 415:on 17 May 2001 390: 353: 323: 292: 269: 235: 196: 194: 191: 190: 189: 181: 178: 108: 102: 99: 94: 93: 92: 91: 71: 68: 67: 66: 63: 60: 52: 49: 43: 40: 20:Date windowing 15: 13: 10: 9: 6: 4: 3: 2: 504: 493: 492:Units of time 490: 489: 487: 467: 463: 456: 453: 440: 434: 431: 427: 411: 407: 406: 401: 394: 391: 387: 371: 367: 363: 357: 354: 350: 338: 334: 327: 324: 320: 307: 303: 296: 293: 289: 285: 278: 276: 274: 270: 266: 250: 246: 239: 236: 232: 216: 212: 211:Online Athens 208: 201: 198: 192: 187: 184: 183: 179: 177: 175: 170: 166: 163: 158: 106: 100: 98: 89: 88: 87: 86: 85: 82: 80: 76: 69: 64: 61: 58: 57: 56: 50: 48: 41: 39: 37: 33: 29: 25: 21: 469:. Retrieved 465: 455: 443:. Retrieved 433: 424: 417:. Retrieved 410:the original 403: 393: 384: 377:. Retrieved 370:the original 365: 356: 348: 341:. Retrieved 337:the original 326: 317: 310:. Retrieved 306:the original 295: 287: 283: 263: 256:. Retrieved 249:the original 238: 229: 222:. Retrieved 215:the original 210: 200: 171: 167: 159: 156: 104: 95: 83: 73: 54: 45: 27: 19: 18: 419:13 February 379:13 February 312:13 February 258:13 February 231:arbitrarily 224:13 February 193:References 28:pivot year 466:IT Jungle 42:Reasoning 486:Category 180:See also 101:Examples 343:2 March 24:century 413:(html) 373:(html) 319:while. 252:(html) 218:(html) 149:END-IF 471:4 May 445:4 May 265:hand. 174:IBM i 116:>= 79:FOCUS 70:FOCUS 473:2022 447:2022 421:2020 381:2020 345:2020 314:2020 260:2020 226:2020 172:The 137:MOVE 134:ELSE 122:MOVE 405:CNN 140:20 125:19 77:'s 34:in 488:: 464:. 423:. 402:. 383:. 364:. 347:. 316:. 272:^ 262:. 228:. 209:. 143:TO 128:TO 119:60 110:IF 38:. 475:. 449:. 152:.

Index

century
year 2000 problem
legacy computer systems
Information Builders
FOCUS
environment variables
IBM i
Serial number arithmetic
"Temporary Y2K fix may last only a generation"
the original
"The Best of Dates, The Worst Of Dates"
the original



"The Y2K Pivot Year Problem"
the original
"Solving the Date Dilemma"
the original
"Chapter 1: Pivot Year"
the original
"COMPUTING Spot & fix Y2K problems in Windows 9x & NT"
CNN
the original
"New base year support for 2-digit year date formats"
"Announcement Day: IBM Lifts The Veil On IBM i 7.5 And 7.4 TR6"
Category
Units of time

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.