Method for reformation conventional three field date formats to produce a century accumulated date
First Claim
1. A method of reformatting a conventional, three field date format having a day field, a month field, and a year field comprising the steps of:
- (1) setting a variable equal to zero;
(2) decrementing a century representation from the year field by one and incrementing the variable by one when the century representation from the year field is greater than 19;
(3) repeating step (2) until the century representation equals 19;
(4) multiplying the variable by a fixed day offset to get a product;
(5) adding the product to a 2 digit day to create a 2 digit century accumulated day;
(6) truncating the 2 century representation digits of a 4 digit year to form a 2 digit year; and
(7) creating a century accumulated 6 digit date format by combining the 2 digit century accumulated day, a 2 digit month, and the 2 digit year.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention relates to a method for reformatting and using the existing 2 digit month field and the existing 2 digit day field in a conventional 8, 7 or 6 digit date format to accommodate new century information. The invention is particularly useful for dealing with 6 digits formats used in existing databases, for example, ASCII date formats of the form mm/dd/yy or dd/mm/yy or yy/mm/dd. The method of the present invention for encoding century information is based on numerically offsetting the range of 1 through 31 days in the day field and/or offsetting the range of 1 through 12 months in the month field. In ASCII, the constraint is the value of the largest number that can be represented in 2 digit ASCII form (i.e. 99). There can be 3 day field ranges, 1-31, 32-62, 63-93 within the range 1 through 99, and there can be 8 month field ranges, 1-12, 13-24, 25-36, 37-48, 49-60, 61-72, 73-84, 85-96. Each of the embodiments manipulate the digits in these fields to produce a century accumulated date. Thus, century may be inserted into the day field, the month field, or both the day and the month field. The century can also be extracted from the century accumulated date to produce a conventional date format.
-
Citations
37 Claims
-
1. A method of reformatting a conventional, three field date format having a day field, a month field, and a year field comprising the steps of:
-
(1) setting a variable equal to zero; (2) decrementing a century representation from the year field by one and incrementing the variable by one when the century representation from the year field is greater than 19; (3) repeating step (2) until the century representation equals 19; (4) multiplying the variable by a fixed day offset to get a product; (5) adding the product to a 2 digit day to create a 2 digit century accumulated day; (6) truncating the 2 century representation digits of a 4 digit year to form a 2 digit year; and (7) creating a century accumulated 6 digit date format by combining the 2 digit century accumulated day, a 2 digit month, and the 2 digit year. - View Dependent Claims (2, 3, 4, 5, 12, 13, 14, 15)
-
-
6. A method of reformatting a conventional, three field date format having a day field, a month field, and a year field comprising the steps of:
-
(1) setting a variable equal to zero; (2) decrementing a century representation from the year field by one and incrementing the variable by one when the century representation is greater than 19; (3) repeating step (2) until the century representation equals 19; (4) multiplying the variable by a fixed month offset to get a product; (5) adding the product to a 2 digit century accumulated month; (6) truncating the 2 century representation digits of a 4 digit year to form a 2 digit year; and (7) creating a century accumulated 6 digit date format by combining the 2 digit century accumulated month, the 2 digit day, and the 2 digit year. - View Dependent Claims (7, 8, 9, 10)
-
-
11. The method of reformatting a conventional, three field date format having a day field, a month field, and a year filed comprising the steps of:
-
setting a day variable equal to a century representation from the year field decremented by 19 and the month variable equal to zero if the century representation is less than 22; multiplying the day variable by a fixed day offset to get a first product; adding the first product to a 2 digit day to create a 2 digit century accumulated day; multiplying the month variable by a fixed month offset to get a second product; adding the product to a 2 digit month to create a 2 digit century accumulated month; truncating the 2 century representation digits of a 4 digit year to form a 2 digit year; and creating a century accumulated 6 digit date format by combining the 2 digit century accumulated month, the 2 digit century accumulated day, and the 2 digit year. - View Dependent Claims (16)
-
-
17. A method of reformatting a conventional, three field date format having a day field, a month field, and a year field comprising the steps of:
-
setting a month variable equal to a century representation decremented by 19 if a century representation is less than 27; multiplying the month variable by a fixed day offset to get a first product; adding the first product to a 2 digit month to create a 2 digit century accumulated month; multiplying the day variable by a fixed day offset to get a second product; and adding the second product to a 2 digit day to create a 2 digit century accumulated day; truncating the 2 century representation digits of a 4 digit year to create a 2 digit year; and creating a century accumulated 6 digit date format by combining the 2 digit century accumulated month, the 2 digit century accumulated day, and the 2 digit year. - View Dependent Claims (18, 19, 20, 21, 22, 23, 24, 25)
-
-
26. A method of reformatting a conventional, three field date format having a day field, a month field, and a year field comprising the steps of:
-
decrementing a century representation from the year field by 19 if the century representation is less than 43; setting a first variable equal to the integer portion of the century representation divided by 8; setting a second variable equal to the remainder portion of the century representation divided by 8; multiplying the first variable by 31 to get a first product; adding a 2 digit day to the first product; multiplying the second variable by 12 to get a second product; adding a 2 digit month to the second product; truncating the 2 century representation digits of a 4 digit year to crate a 2 digit year; and creating a century accumulated 6 digit date format by combining a 2 digit century accumulated month, the 2 digit century accumulated day, and the 2 digit year. - View Dependent Claims (27, 28, 29, 30, 31)
-
-
32. A method of reformatting a conventional, three field date format having a day field, a month field, and a year field comprising the steps of:
-
decrementing century representation from the year field by 19 if the century representation of a 4 digit year is less than 43; setting a first variable equal to the integral portion of the century representation divided by 3; setting a second variable equal to the remainder portion of the century representation divided by 3; multiplying the second variable by 31 to get a first product; adding a 2 digit day to the first product; multiplying the first variable by 12 to get a second product; adding a 2 digit month to the second product; truncating the first 2 digits of the 4 digits year to create a 2 digit year; and creating a century accumulated 6 digit date format by combining the 2 digit century accumulated month, the 2 digit century accumulated day, and the 2 digit year. - View Dependent Claims (33, 34, 35, 36, 37)
-
Specification