WO1999006919A1 - A computer system, arrangement and method for handling century information within a date representation - Google Patents

A computer system, arrangement and method for handling century information within a date representation Download PDF

Info

Publication number
WO1999006919A1
WO1999006919A1 PCT/SE1998/000426 SE9800426W WO9906919A1 WO 1999006919 A1 WO1999006919 A1 WO 1999006919A1 SE 9800426 W SE9800426 W SE 9800426W WO 9906919 A1 WO9906919 A1 WO 9906919A1
Authority
WO
WIPO (PCT)
Prior art keywords
century
date
representing
format
character
Prior art date
Application number
PCT/SE1998/000426
Other languages
French (fr)
Inventor
Roman Bieler
Original Assignee
Roman Bieler
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from SE9702828A external-priority patent/SE9702828D0/en
Priority claimed from US08/921,709 external-priority patent/US5930506A/en
Application filed by Roman Bieler filed Critical Roman Bieler
Priority to AU64286/98A priority Critical patent/AU6428698A/en
Publication of WO1999006919A1 publication Critical patent/WO1999006919A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing

Definitions

  • the present invention relates to a computer system for processing, and an arrangement and method for adapting a computer system to process, date representations having a format indicating the century of a represented date.
  • dates are represented by six characters.
  • the representation used indicates the year by two digits corresponding to the last two numbers of the year in question, the month by two digits corresponding to the month (1 - 12) in question, and the day by two digits corresponding to the day of the month (1 - 31).
  • the standard way of representing a date with six characters was, and in many cases still are, to represent the year with two digits in the range 00 - 99, the month with another two digits in the range 01 - 12 and the day with yet another two digits in the range 01 - 31.
  • the order of these digits can be varied in a number of ways to produce a number of standard formats, such as YY/MM/DD, MM/DD/YY or DD/MM/YY, where Y is a year digit, M a month digit and D a day digit.
  • the representation is thus well suited to represent any date in a certain century, for example the 20:th.
  • a reprogramming of the whole system to use an eight character format including four, instead of two, year digits is time consuming and expensive.
  • One proposed solution is to change the date format into the representation CYYDDD, where C denotes the century, YY the year, and DDD the day as a number from 1 - 365 or 366.
  • This proposed method will only solve a part of the problem.
  • a problem which will remain is that most of the computer systems are set to employ one of the standard formats YY/MM/DD, MM/DD/YY or DD/MM/YY and used in that form for different calculations, such as determining the month.
  • the standard formats are better suited for display to a user, for whom it will be easier to use the date information, since the day and the month are displayed explicitly.
  • US, 5 668 989 discloses a method in which the first digit of the two character year group is treated as a hexadecimal, thereby enabling representation of years in a 160 year time span, instead of the 100 year time span available from treatment as a decimal.
  • US, 5 644 762 relates to a method of how to treat the year characters by using the normally unused ranges of the two eight-bit bytes representing the year.
  • Another object is to adapt an existing system in such a way that the system can interact with its environment with an interface using an eight character date format including century information, rather than the old six character date format without century information.
  • Yet another object is to adapt an existing system to be able to interpret a six character date format without century information as a date referring to a certain century and to continue to process this date taking into account that it refers to a certain century.
  • Another object is to realise a new system having the same abilities as the above mentioned adapted existing system.
  • the inventive idea of the present invention is to include, in a date representation, information referring to the century of a date by merging this century information with any other information not referring to the year of said date.
  • This basic idea forms the foundation for a number of different aspects of the present invention.
  • century information easily can be incorporated in a date representation without having to extend the number of characters of the format of the date representation for this purpose.
  • the century information can be incorporated in any characters not representing a year of the date, regardless of the number of characters in the date representation format.
  • a four character format having two characters representing a year and two characters representing a month
  • the information is included in the month character.
  • a six or eight character format having two or four characters representing a year, two characters representing a month and two characters representing a day
  • the information is either included in the month characters, the day characters, or a combination thereof.
  • said character format is formed as a six character format and said century information is expressed, at least for one century, as an offset included in the two characters representing the month.
  • These offsets may be chosen in a number of various way. Two different offsets can indicate two different centuries, for example the offset 0 may indicate the twentieth century and the offset 20 the twenty-first century, giving the value of the month characters a range of 1-12 and 21-32, respectively. It is also possible to have offsets for other additional centuries and/or other offset values.
  • said century information is expressed in a six character format as an offset included in the two characters representing a the day. Also here, a number of different offsets for different centuries can be used, for example 0 for the twentieth century and 40 for the twenty-first century.
  • said objects are achieved by an arrangement for adapting a computer system to handle century information when processing six character format date representations, wherein means are incorporated for conversion between a date representation with a predetermined format including year and century information, in particular an eight character format having four characters representing a year, two characters representing a month and two characters representing a day and a date representation with a six character format having two characters representing a year, two characters representing a month and two characters representing a day, said two characters representing a month or said two characters representing a day including information indicative of the century.
  • said means for conversion consist of software subroutines.
  • the means consist of hardware circuits. These circuits may be situated in a computer, in a keyboard, or between a keyboard and a computer.
  • said objects are achieved by a method for adapting a computer system to handle century information when processing six character format date representations, comprising the step of converting between a date representation with a predetermined format including year and century information, in particular an eight character format having four characters representing a year, two characters representing a month and two characters representing a day and a date representation with a six character format having two characters representing a year, two characters representing a month and two characters representing a day, said two characters representing a month or said two characters representing a day including information indicative of the century.
  • said objects are achieved by a method for converting date representations stored in a storage media from a first six character format without century information to a second six character format with explicit century information, both of which formats have two characters representing a year, two characters representing a moth and two characters representing a day, comprising the steps of: reading a date represented with said first format from said storage media; deciding whether the two characters representing a year of said date belongs to a lower range or an upper range; representing said date in said second format by incorporating information relating to the twenty-first century when said date belongs to said lower range, or incorporating information relating to the twentieth century when said date belongs to said upper range; and storing said date in said storage media using said second format.
  • Dates are here read from, and stored in, a storage media. However, the dates are alternatively accepted from and/or presented to any other I/O-interface, such as a user terminal or a communication port to another computer system. With this method the system can interpret what century a date refers to even though it is has a representation which does not include any century information. A new representation of the date including century information is then used in the further processing of the date. For any further interaction with any I/O-device the new representation is used, either directly or by converting it a standard format having century information.
  • Figs. 2a - 2c illustrate date representations having an eight character format in an exemplified standardised way
  • Figs. 3a - 3d illustrate date representations having Roman formats in accordance with two different embodiments of the invention
  • Fig. 4a is a flow chart illustrating a conversion of a date from a standard format to a Roman format in accordance with an embodiment of the invention
  • Fig. 4b is a flow chart illustrating a conversion of a date from a Roman format to a standard format in accordance with an embodiment of the invention
  • Fig. 5 is a flow chart illustrating a further embodiment of the present invention
  • FIG. 6 and 7 schematically show two different hardware configurations in accordance with two different embodiments of the invention
  • Fig. 8 is a flow chart which shows yet another embodiment of the invention
  • Figs. 9a and 9b are flow charts illustrating two exemplifying ways of how to utilise the invention.
  • FIG. la an exemplified standard date format is shown.
  • the format has six characters for representing a date, where the two character group Y 2 Y ⁇ represents the year with a value in the range 0 - 99, the two character group 2 M ⁇ represents the month with a value in the range 1 - 12 and the two character group D 2 D ⁇ represents the day with a value in the range 1 - 31.
  • this format any date within a certain century can be represented.
  • the order of these two character groups can be varied to produce a number of different standard formats for representing a date.
  • Fig. lb and fig. lc shows two exemplifying dates, 4:th of March 1997 and 4:th of March 2001, using the format from fig. la.
  • fig. 2a Another exemplified standard date format is shown in fig. 2a. This is an eight character format, with a four character group Y 4 Y 3 Y 2 Y ⁇ representing the year. The format can distinguish between different centuries and a comparison between the two exemplifying dates 4 : th of March 1997 and 4 : th of March 2001, shown in fig. 2b and fig. 2c, respectively, will, based upon the four character group year representations, give a correct result .
  • the inventive novel format called the Roman format
  • a way of representing a date in Roman format according to one embodiment of the invention is shown in fig. 3a.
  • the Roman format uses six characters to represent a date, where the two character group Y 2 Y ⁇ represents the year, the two character group M 2 M X represents the month and the two character group D 2 D ⁇ represents the day.
  • the value of the year group will be in the range 0 - 99 representing the year of a century.
  • an offset value 0 has been chosen to represent the twentieth century, thus the date in fig. 3b represents 4 : th of March 1997.
  • the twenty-first century is then represented either by an offset for the month group value, according to one embodiment of the invention, or by an offset for the day group value, according to another embodiment of the invention.
  • the twenty-first century is represented by an offset value 20 for the month group, giving a range for the value of the month group of 21 - 32 (January - December) .
  • the twenty-first century is represented by an offset value 40 for the day group, giving a range for the value of the day group of 41 - 71 (day 1 - day 31 of a month) .
  • the two variants of the Roman format depicted in figs. 3c and 3d both represents 4:th of March in the year 2001.
  • Figs. 4a and 4b are flow charts of two other embodiments of the present invention.
  • the flow charts in figs. 4a and 4b illustrate the conversion from an eight character standard format to a six character Roman format and from a six character Roman format to an eight character standard format, respectively.
  • the notations used in these flow charts are as follows.
  • the values of the standard format month character group M 2 M ⁇ and day character group D 2 D ⁇ are in the flow chart denoted sf_month_value and sf_day_ alue, respectively.
  • the value of the standard format year group Y 4 Y 3 Y 2 Y ⁇ is split into two parts, the value of the two least significant characters Y 2 Y ⁇ denoted sf_year_lsc_value and the value of the two most significant characters Y 4 Y 3 denoted ⁇ f__year__msc_value .
  • the values of the year character group Y 2 Y ⁇ , month character group M 2 M ⁇ and day character group D 2 D of the Roman format are denoted rf_year_val ue , rf_month_value and rf_day_value, respectively.
  • the standard format indicates a date of the twentieth century and there will be no offset added, but the rf_mon th_val ue will be equal to the sf___month_value .
  • the standard format dates 2001-03-04 and 1997-03-04 will be converted to the six character Roman format dates 01-23-04 and 97-03-04, respectively.
  • the conversion from Roman format to standard format will comprise testing the condition rf_month_value > 20.
  • the Roman format indicates a date of the twenty- first century and the offset value 20 will be subtracted from the rf_month_value resulting in a sf_month__value, and the sf_year_msc_yalue will be set to 20, which is the value of the two most significant characters of a four character year of the twenty-first century. If the condition is not fulfilled the Roman format indicates a date of the twentieth century and there will be no offset subtracted, but the sf_month__value will be equal to the rf_month_value, also the s _year_i r nsc_value will be set to 19 which is the value of the two most significant characters of a four character year of the twentieth century. From the flow chart in fig. 4b it is easily seen that the Roman format dates 01-23-04 and 97-03-04 will be converted to the standard format dates 2001-03-04 and 1997-03-04, respectively.
  • Fig. 5 is a flow chart illustrating another embodiment of the present invention.
  • a computer system uses a Roman format for the relevant processing of date representations.
  • a standard format date is inputted to the computer system via a terminal connected to the computer system, or via an Input/Output ( I/O) -device connected to another computer system, or from a storage media.
  • the standard format is converted to a Roman format, for example m accordance with the description referring to fig. 4a, m order for the computer system to be able to process the date representation.
  • the Roman format date is processed by the system and when there is a need to output a date from the system the representation of this date is converted from the Roman format to the standard format. After this conversion, for example in accordance with the description referring to fig. 4b, the date is outputted m a standard format to a terminal, I/O-device or storage media.
  • a hardware configuration for a system in accordance with the present invention is shown.
  • the configuration comprises a computer, an I/O-device, a user terminal and a storage media.
  • the storage media is preferably configured to hold a database.
  • the conversions, where applicable, between standard and Roman format are here either implemented in software or being an integral part of a compiler, as previously described with reference to figs. 4a and 4b.
  • Fig. 7 shows another hardware configuration for a system m accordance with the present invention. It shows an alternative hardware configuration comprising a computer, an I/O-device, a user terminal, a storage media, and also converting means. Each one of the converting means forms an arrangement for converting between standard and Roman format, for example m accordance with the steps or methods described with reference to figs. 4a and 4b. Hence, the conversions are not implemented in software, but preferably by means of hardware circuits.
  • Fig. 8 is a flow chart illustrating another embodiment in accordance with the invention.
  • This embodiment is applicable in case a computer system adapted to handle Roman format date representations is to be able to handle dates of the twenty-first century already stored in, or being inputted to, the system in a six character standard format.
  • the six character standard format date is read from a storage media or from another kind of I/O-interface, such as from a user terminal or from a communication port connected to another computer system.
  • the notations used in this flow chart are the same as those previously used in figs. 4a and 4b, except for that the six character standard format only has one value for the group of characters representing a year, namely sf_year_value representing the two character year value Y 2 Y ⁇ , as described with reference to figs, la - lc.
  • a kind of windowing-technique is then used to decide which century a date refers to.
  • the Roman format date is then written to a storage media, for example a media holding a database. However, the date may alternatively be presented to another I/O-interface, such as a user terminal or a communication port to another computer system.
  • a software program or routine receives a date in a Roman format. The date is then converted from the Roman format to a standard format. In this way the standard library functions accepting and processing dates of a standard format can be utilised by the program. A function call result not being in the form of a standard date format is immediately returned by the routine.
  • the function call result is in the form of a standard date format
  • the date is converted into a Roman format before the result is returned by the routine.
  • the Roman format date is accepted from, and the function call result is presented to, an I/O-interface, whereby the conversions is either realised with software or by means of hardware circuits.
  • Any date processing may be performed by a software subroutine, which means that the date format, standard or Roman, is transferred to the routine during the call to the routine.
  • the date processing may be regarded as performed by the system as a hole, in which case the date is transferred via some kind of I/O- interface, for example, connected to a user terminal, forming a port to another system, or being connected to a storage media of some kind.
  • the conversions between standard and Roman format is either performed by software routines, a compiler or, where applicable, by hardware circuits.

Abstract

The invention relates to the adaptation of existing computer system to the twenty-first century in a way that minimises the amount of reprogramming. More sepcifically it relates to a computer system for processing date representations in which a date is represented by a character format, said format having at least one set of characters representing a year and one further set of characters, wherein century information indicative of the century of said date is incorporated in said further set of characters.

Description

A COMPUTER SYSTEM, ARRANGEMENT AND METHOD FOR HANDLING CENTURY INFORMATION WITHIN A DATE REPRESENTATION
Technical field of the invention
The present invention relates to a computer system for processing, and an arrangement and method for adapting a computer system to process, date representations having a format indicating the century of a represented date.
Technical Background and Prior Art In many computer systems, in particular older computer systems, dates are represented by six characters. The representation used indicates the year by two digits corresponding to the last two numbers of the year in question, the month by two digits corresponding to the month (1 - 12) in question, and the day by two digits corresponding to the day of the month (1 - 31).
The use of only six characters was employed in order to save memory capacity, which was expensive at the time. Furthermore, it was not expected that these old computer systems was going to survive into the next century, i.e. the twenty-first century.
The standard way of representing a date with six characters was, and in many cases still are, to represent the year with two digits in the range 00 - 99, the month with another two digits in the range 01 - 12 and the day with yet another two digits in the range 01 - 31. The order of these digits can be varied in a number of ways to produce a number of standard formats, such as YY/MM/DD, MM/DD/YY or DD/MM/YY, where Y is a year digit, M a month digit and D a day digit. The representation is thus well suited to represent any date in a certain century, for example the 20:th.
These formats will create problems in many computer systems when, for example, dates are to be sorted or merely compared, since there is no way to identify the difference between different centuries.
A reprogramming of the whole system to use an eight character format including four, instead of two, year digits is time consuming and expensive. One proposed solution is to change the date format into the representation CYYDDD, where C denotes the century, YY the year, and DDD the day as a number from 1 - 365 or 366. This proposed method will only solve a part of the problem. A problem which will remain is that most of the computer systems are set to employ one of the standard formats YY/MM/DD, MM/DD/YY or DD/MM/YY and used in that form for different calculations, such as determining the month. Moreover, the standard formats are better suited for display to a user, for whom it will be easier to use the date information, since the day and the month are displayed explicitly.
US, 5 668 989, discloses a method in which the first digit of the two character year group is treated as a hexadecimal, thereby enabling representation of years in a 160 year time span, instead of the 100 year time span available from treatment as a decimal.
US, 5 644 762, relates to a method of how to treat the year characters by using the normally unused ranges of the two eight-bit bytes representing the year.
Objects of the invention
It is an object of the present invention to adapt an existing computer system to the twenty-first century in a way that minimises the amount of reprogramming . Another object is to adapt an existing system in such a way that the system can interact with its environment without having to rebuild its existing interfaces which use a six character date format.
Another object is to adapt an existing system in such a way that the system can interact with its environment with an interface using an eight character date format including century information, rather than the old six character date format without century information.
Yet another object is to adapt an existing system to be able to interpret a six character date format without century information as a date referring to a certain century and to continue to process this date taking into account that it refers to a certain century.
Another object is to realise a new system having the same abilities as the above mentioned adapted existing system.
Summary of the invention
The above mentioned objects are achieved by the present invention as set forth by the accompanying claims .
The inventive idea of the present invention is to include, in a date representation, information referring to the century of a date by merging this century information with any other information not referring to the year of said date. This basic idea forms the foundation for a number of different aspects of the present invention.
According to a first aspect of the invention, the above mentioned objects are achieved by a computer system for processing date representations in which a date is represented by a character format, said format having at least one set of characters representing a year and one further set of characters, wherein century information indicative of the century of said date is incorporated in said further set of characters. Thus, this gives the advantage that century information easily can be incorporated in a date representation without having to extend the number of characters of the format of the date representation for this purpose.
The century information can be incorporated in any characters not representing a year of the date, regardless of the number of characters in the date representation format. In a four character format, having two characters representing a year and two characters representing a month, the information is included in the month character. In a six or eight character format, having two or four characters representing a year, two characters representing a month and two characters representing a day, the information is either included in the month characters, the day characters, or a combination thereof. An advantage of having century information incorporated in an eight character format already having the century of the date in its four character representing a year, is that this in some cases enhances the security of the system.
According to one embodiment of the invention, said character format is formed as a six character format and said century information is expressed, at least for one century, as an offset included in the two characters representing the month. These offsets may be chosen in a number of various way. Two different offsets can indicate two different centuries, for example the offset 0 may indicate the twentieth century and the offset 20 the twenty-first century, giving the value of the month characters a range of 1-12 and 21-32, respectively. It is also possible to have offsets for other additional centuries and/or other offset values.
In another embodiment said century information is expressed in a six character format as an offset included in the two characters representing a the day. Also here, a number of different offsets for different centuries can be used, for example 0 for the twentieth century and 40 for the twenty-first century.
This way of incorporating century information is particularly advantageous in older computer systems which operate with date representations having a format normally not including such information. In these older systems the format can be kept intact and there is only a need to adjust the system to accept the new intervals of the date characters. According to a second aspect of the invention, said objects are achieved by an arrangement for adapting a computer system to handle century information when processing six character format date representations, wherein means are incorporated for conversion between a date representation with a predetermined format including year and century information, in particular an eight character format having four characters representing a year, two characters representing a month and two characters representing a day and a date representation with a six character format having two characters representing a year, two characters representing a month and two characters representing a day, said two characters representing a month or said two characters representing a day including information indicative of the century.
According to an embodiment of the invention said means for conversion consist of software subroutines. In another embodiment the means consist of hardware circuits. These circuits may be situated in a computer, in a keyboard, or between a keyboard and a computer.
According to a third aspect of the invention, said objects are achieved by a method for adapting a computer system to handle century information when processing six character format date representations, comprising the step of converting between a date representation with a predetermined format including year and century information, in particular an eight character format having four characters representing a year, two characters representing a month and two characters representing a day and a date representation with a six character format having two characters representing a year, two characters representing a month and two characters representing a day, said two characters representing a month or said two characters representing a day including information indicative of the century. These latter two aspects mean that the system is able to accept, and to present, formats of date representations from/to user terminals, other computer systems or storage media, having additional explicit century information, while still maintaining an internal six character format date representation incorporating century information. The two embodiments described in connection with the first aspect are also applicable with respect to these two aspects. It should be noted that the system alternatively communicates with its environment using solely a date representation where the century information has been merged with any information not referring to the year of a date, in which case the means for conversion is obsolete.
According to a fourth aspect of the invention, said objects are achieved by a method for converting date representations stored in a storage media from a first six character format without century information to a second six character format with explicit century information, both of which formats have two characters representing a year, two characters representing a moth and two characters representing a day, comprising the steps of: reading a date represented with said first format from said storage media; deciding whether the two characters representing a year of said date belongs to a lower range or an upper range; representing said date in said second format by incorporating information relating to the twenty-first century when said date belongs to said lower range, or incorporating information relating to the twentieth century when said date belongs to said upper range; and storing said date in said storage media using said second format.
Dates are here read from, and stored in, a storage media. However, the dates are alternatively accepted from and/or presented to any other I/O-interface, such as a user terminal or a communication port to another computer system. With this method the system can interpret what century a date refers to even though it is has a representation which does not include any century information. A new representation of the date including century information is then used in the further processing of the date. For any further interaction with any I/O-device the new representation is used, either directly or by converting it a standard format having century information.
In the present invention it is possible to convert between different date format representations in a numerous ways. One way is to have software subroutines performing the conversions, another way is to have a predefined look-up table, yet another way is to implement the conversions by means of hardware circuits. Yet another way is to incorporate these conversions in the compiler in such a way that the conversions, where applicable, automatically are performed at compilation time.
Further aspects and characteristics of the present invention will be apparent from the following description of a number of preferred embodiments of the invention.
The novel format for date representations described in this application, that is a format where information of the century of a date has been merged with any other information not referring to the year of said date, will from hereon be called the Roman format.
Brief description of the drawings Figs, la - lc illustrate date representations having a six character format in an exemplified standardised way;
Figs. 2a - 2c illustrate date representations having an eight character format in an exemplified standardised way;
Figs. 3a - 3d illustrate date representations having Roman formats in accordance with two different embodiments of the invention;
Fig. 4a is a flow chart illustrating a conversion of a date from a standard format to a Roman format in accordance with an embodiment of the invention;
Fig. 4b is a flow chart illustrating a conversion of a date from a Roman format to a standard format in accordance with an embodiment of the invention; Fig. 5 is a flow chart illustrating a further embodiment of the present invention;
Figs. 6 and 7 schematically show two different hardware configurations in accordance with two different embodiments of the invention; Fig. 8 is a flow chart which shows yet another embodiment of the invention;
Figs. 9a and 9b are flow charts illustrating two exemplifying ways of how to utilise the invention.
Detailed description of preferred embodiments
In figure la an exemplified standard date format is shown. The format has six characters for representing a date, where the two character group Y2Yι represents the year with a value in the range 0 - 99, the two character group 2Mχ represents the month with a value in the range 1 - 12 and the two character group D2Dι represents the day with a value in the range 1 - 31. With this format any date within a certain century can be represented. The order of these two character groups can be varied to produce a number of different standard formats for representing a date. Fig. lb and fig. lc shows two exemplifying dates, 4:th of March 1997 and 4:th of March 2001, using the format from fig. la. Since 01 is smaller than 97, 4 : th of March 2001 will be considered as an earlier date than 4:th of March 1997. Another exemplified standard date format is shown in fig. 2a. This is an eight character format, with a four character group Y4Y3Y2Yχ representing the year. The format can distinguish between different centuries and a comparison between the two exemplifying dates 4 : th of March 1997 and 4 : th of March 2001, shown in fig. 2b and fig. 2c, respectively, will, based upon the four character group year representations, give a correct result .
With reference to figs. 3a - 3d the inventive novel format, called the Roman format, will be explained. A way of representing a date in Roman format according to one embodiment of the invention is shown in fig. 3a. Here, the Roman format uses six characters to represent a date, where the two character group Y2Yι represents the year, the two character group M2MX represents the month and the two character group D2Dχ represents the day. The value of the year group will be in the range 0 - 99 representing the year of a century.
In fig. 3b - 3d an offset value 0 has been chosen to represent the twentieth century, thus the date in fig. 3b represents 4 : th of March 1997. The twenty-first century is then represented either by an offset for the month group value, according to one embodiment of the invention, or by an offset for the day group value, according to another embodiment of the invention. In fig. 3c the twenty-first century is represented by an offset value 20 for the month group, giving a range for the value of the month group of 21 - 32 (January - December) . Alternatively, in fig. 3d the twenty-first century is represented by an offset value 40 for the day group, giving a range for the value of the day group of 41 - 71 (day 1 - day 31 of a month) . Thus, the two variants of the Roman format depicted in figs. 3c and 3d both represents 4:th of March in the year 2001.
Figs. 4a and 4b are flow charts of two other embodiments of the present invention. The flow charts in figs. 4a and 4b illustrate the conversion from an eight character standard format to a six character Roman format and from a six character Roman format to an eight character standard format, respectively. The notations used in these flow charts are as follows. The values of the standard format month character group M2Mι and day character group D2Dχ are in the flow chart denoted sf_month_value and sf_day_ alue, respectively. The value of the standard format year group Y4Y3Y2Yι is split into two parts, the value of the two least significant characters Y2Yι denoted sf_year_lsc_value and the value of the two most significant characters Y4Y3 denoted εf__year__msc_value . The values of the year character group Y2Yι, month character group M2Mι and day character group D2D of the Roman format are denoted rf_year_val ue , rf_month_value and rf_day_value, respectively.
Assume that the six character Roman format is chosen in such a way that a date of the twenty-first century is represented by an offset with the value 20 included in the value of the month character group M2Mχ and that said group has an offset with the value 0 for a date of the twentieth century. With reference to fig. 4a, the conversion from standard format to Roman format will then comprise testing the condition sf_year_msc_val ue = 20. If this is true the standard format indicates a date of the twenty-first century and the offset value 20 will be added to the sf__month_value resulting in a rf mon th val ue . If the condition is not fulfilled the standard format indicates a date of the twentieth century and there will be no offset added, but the rf_mon th_val ue will be equal to the sf__month_value . From the flow chart in fig. 4a it is easily seen that the standard format dates 2001-03-04 and 1997-03-04 will be converted to the six character Roman format dates 01-23-04 and 97-03-04, respectively. With reference to fig. 4b, the conversion from Roman format to standard format will comprise testing the condition rf_month_value > 20. If this is true the Roman format indicates a date of the twenty- first century and the offset value 20 will be subtracted from the rf_month_value resulting in a sf_month__value, and the sf_year_msc_yalue will be set to 20, which is the value of the two most significant characters of a four character year of the twenty-first century. If the condition is not fulfilled the Roman format indicates a date of the twentieth century and there will be no offset subtracted, but the sf_month__value will be equal to the rf_month_value, also the s _year_irnsc_value will be set to 19 which is the value of the two most significant characters of a four character year of the twentieth century. From the flow chart in fig. 4b it is easily seen that the Roman format dates 01-23-04 and 97-03-04 will be converted to the standard format dates 2001-03-04 and 1997-03-04, respectively.
To translate these flow charts into some kind of software subroutines, with executable code in any computer language, is an easy task for a person skilled in the art. Moreover, it would be an easy task for a manufacturer of a code compiler to incorporate these conversions in the compiler. That is, a date defined as a standard/Roman format by a programmer would automatically be converted to a Roman/standard format by the compiler at compilation time. However, these conversions may also be implemented by means of hardware circuits.
Fig. 5 is a flow chart illustrating another embodiment of the present invention. Here a computer system uses a Roman format for the relevant processing of date representations. A standard format date is inputted to the computer system via a terminal connected to the computer system, or via an Input/Output ( I/O) -device connected to another computer system, or from a storage media. The standard format is converted to a Roman format, for example m accordance with the description referring to fig. 4a, m order for the computer system to be able to process the date representation. The Roman format date is processed by the system and when there is a need to output a date from the system the representation of this date is converted from the Roman format to the standard format. After this conversion, for example in accordance with the description referring to fig. 4b, the date is outputted m a standard format to a terminal, I/O-device or storage media.
In fig. 6 a hardware configuration for a system in accordance with the present invention is shown. The configuration comprises a computer, an I/O-device, a user terminal and a storage media. The storage media is preferably configured to hold a database. The conversions, where applicable, between standard and Roman format are here either implemented in software or being an integral part of a compiler, as previously described with reference to figs. 4a and 4b.
Fig. 7 shows another hardware configuration for a system m accordance with the present invention. It shows an alternative hardware configuration comprising a computer, an I/O-device, a user terminal, a storage media, and also converting means. Each one of the converting means forms an arrangement for converting between standard and Roman format, for example m accordance with the steps or methods described with reference to figs. 4a and 4b. Hence, the conversions are not implemented in software, but preferably by means of hardware circuits. Fig. 8 is a flow chart illustrating another embodiment in accordance with the invention. This embodiment is applicable in case a computer system adapted to handle Roman format date representations is to be able to handle dates of the twenty-first century already stored in, or being inputted to, the system in a six character standard format. The six character standard format date is read from a storage media or from another kind of I/O-interface, such as from a user terminal or from a communication port connected to another computer system. The notations used in this flow chart are the same as those previously used in figs. 4a and 4b, except for that the six character standard format only has one value for the group of characters representing a year, namely sf_year_value representing the two character year value Y2Yι, as described with reference to figs, la - lc. A kind of windowing-technique is then used to decide which century a date refers to. Here this means that the two character year value Y2Yι undergoes a conditional test. If the value is in the range 1 - 49, the year is considered to refer to the twenty-first century and an offset value 20 will be added to the sf_month_value resulting in an rf_month_value . If the year value is in the range 50 - 99, the year is considered to refer to the twentieth century and no offset will be added, but the rf_mon th_ value will be equal to the sf_month_value . This means that the six character standard format dates of fig. lb and lc will be converted to the six character Roman format dates of fig. 3b and 3c, respectively. The Roman format date is then written to a storage media, for example a media holding a database. However, the date may alternatively be presented to another I/O-interface, such as a user terminal or a communication port to another computer system. In figs. 9a and 9b another two exemplifying ways of how to utilise the invention are shown. In fig. 9a a software program or routine receives a date in a Roman format. The date is then converted from the Roman format to a standard format. In this way the standard library functions accepting and processing dates of a standard format can be utilised by the program. A function call result not being in the form of a standard date format is immediately returned by the routine. However, if the function call result is in the form of a standard date format, the date is converted into a Roman format before the result is returned by the routine. Alternatively, the Roman format date is accepted from, and the function call result is presented to, an I/O-interface, whereby the conversions is either realised with software or by means of hardware circuits.
In fig 9b a Roman format date is accepted from an I/O-interface after which it is processed. The program has access to a library with functions accepting and processing dates of a Roman format. Hence, no conversion of date formats is necessary, neither before a function call, nor before a function call result is presented to an I/O-interface.
It is obvious that the above described embodiments and examples can be combined in a number of various ways without falling outside the scope of the appended claims. Any date processing may be performed by a software subroutine, which means that the date format, standard or Roman, is transferred to the routine during the call to the routine. Alternatively, the date processing may be regarded as performed by the system as a hole, in which case the date is transferred via some kind of I/O- interface, for example, connected to a user terminal, forming a port to another system, or being connected to a storage media of some kind. The conversions between standard and Roman format is either performed by software routines, a compiler or, where applicable, by hardware circuits.

Claims

CLAIMS 1. A computer system for processing date representations in which a date is represented by a character format, said format having at least one set of characters representing a year and one further set of characters, wherein century information indicative of the century of said date is incorporated in said further set of characters.
2. A computer system as claimed in claim 1, wherein said character format is formed as a six character format, with two characters representing a year, two characters representing a month and two characters representing a day, wherein century information indicative of the century of said date is incorporated in the characters representing the month or in the characters representing the day of said date.
3. A computer system as claimed in claims 1 or 2, wherein all characters in said character format have numerical values.
4. A computer system as claimed in claim 3, wherein said century information at least for one century is expressed as an offset included in the two characters representing a the month.
5. A computer system as claimed in claim 4, wherein the value of said two characters representing a month constitutes the value of said offset in addition to a numerical value in the range 1 - 12.
6. A computer system as claimed in claim 3, wherein said century information at least for one century is expressed as an offset included in the two characters representing a the day.
7. A computer system as claimed in claim 6, wherein the value of said two characters representing a day constitutes the value of said offset in addition to a numerical value in the range 1 - 31.
8. An arrangement for adapting a computer system to handle century information when processing six character format date representations, wherein means are incorporated for conversion between a date representation with a predetermined format including year and century information, in particular an eight character format having four characters representing a year, two characters representing a month and two characters representing a day and a date representation with a six character format having two characters representing a year, two characters representing a month and two characters representing a day, said two characters representing a month or said two characters representing a day including information indicative of the century.
9. An arrangement as claimed in claim 8, wherein all characters in said six character format have numerical values .
10. An arrangement as claimed in claims 8 or 9, wherein said means for the conversion are arranged to add, for at least one century, an offset to a value representing a month of said predetermined format resulting in a value of the two characters representing a month in said six character format, said offset representing the century given by the predetermined format.
11. An arrangement as claimed in claims 8 or 9, wherein said means for the conversion are arranged to add, for at least one century, an offset to a value representing a day of said predetermined format resulting in a value of the two characters representing a day in said six character format, said offset representing the century given by the predetermined format.
12. An arrangement as claimed in claims 8 or 9, wherein said means for the conversion are arranged to remove, for at least one century, an offset from the value of the two characters representing a month in said six character format resulting in a value representing a month of said predetermined format, said offset representing the century to be expressed in said predetermined format.
13. An arrangement as claimed in claims 8 or 9, wherein said means for the conversion are arranged to remove, for at least one century, an offset from the value of the two characters representing a day in said six character format resulting in a value representing a day of said predetermined format, said offset representing the century to be expressed in said predetermined format.
14. An arrangement as claimed in any of claims 8 - 13, wherein said means are designed as a software module to be utilised by the software running on said computer system.
15. An arrangement as claimed in any of claims 8 - 13, wherein said means are designed as a hardware circuit which is incorporated between an input/output interface and a Central Processor Unit of said computer system.
16. An arrangement as claimed in any of claims 8 - 13, wherein said means are arranged to cooperate with a control system used for controlling the storage of date representations on a storage media connected to said computer system.
17. A method for adapting a computer system to handle century information when processing six character format date representations, comprising the step of converting between a date representation with a predetermined format including year and century information, in particular an eight character format having four characters representing a year, two characters representing a month and two characters representing a day and a date representation with a six character format having two characters representing a year, two characters representing a month and two characters representing a day, said two characters representing a month or said two characters representing a day including information indicative of the century.
18. A method as claimed in claim 17, wherein all characters in said six character format have numerical values.
19. A method as claimed in claims 17 or 18, wherein said coverting step comprises the step of adding, for at least one century, an offset to a value representing a month of said predetermined format resulting in a value of the two characters representing a month in said six character format, said offset representing the century given by the predetermined format.
20. A method as claimed in claims 17 or 18, wherein said converting step comprises the step of adding, for at least one century, an offset to a value representing a day in said predetermined format resulting in a value of the two characters representing a day in said six character format, said offset representing the century given by the predetermined format.
21. A method as claimed in claims 17 or 18, wherein said converting step comprises the step of removing, for at least one century, an offset from the value of the two characters representing a month in said six character format resulting in a value representing a month of said predetermined format, said offset representing the century to be expressed in said predetermined format.
22. A method as claimed in claims 17 or 18, wherein said converting step comprises the step of removing, for at least one century, an offset from the value of the two characters representing a day in said six character format resulting in a value representing a day of said predetermined format, said offset representing the century to be expressed in said predetermined format.
23. A storage media for storing date representations in which a date is represented by a six character format, with two characters representing a year, two characters representing a month and two characters representing a day, wherein century information indicative of the century of said date is incorporated in the characters representing the month or in the characters representing the day of said date.
24. A method for converting date representations stored in a storage media from a first six character format without century information to a second six character format with explicit century information, both of which formats have two characters representing a year, two characters representing a moth and two characters representing a day, comprising the steps of: reading a date represented with said first format from said storage media; deciding whether the two characters representing a year of said date belongs to a lower range or an upper range; representing said date in said second format by incorporating information relating to the twenty-first century when said date belongs to said lower range, or incorporating information relating to the twentieth century when said date belongs to said upper range; and storing said date in said storage media using said second format.
25. A method as claimed in claim 24, wherein all characters in said second six character format have numerical values.
26. A method as claimed in claim 25, wherein said step of representing said date in said second format comprises adding an offset to the two character value of the month in said six character format.
27. A method as claimed in claim 25, wherein said step of representing said date in said second format comprises adding an offset to the two character value of the day in said six character format.
28. A method for modifying the representation of a date prior to outputting the date from a computer system, wherein a date representation with a predetermined format including year and century information, in particular an eight character format date representation having four characters representing a year, two characters representing a month and two characters representing a day is modified to a date representation with a six character format having two characters representing a year, two characters representing a month and two characters representing a day, said two characters representing a month or said two characters representing a day including information indicative of the century, said six character format being the date representation in which the date is to be outputted from the computer system.
29. A computer system as claimed in claim 28, wherein all characters in said six character format have numerical values.
30. A computer system as claimed in claim 29, wherein said information indicative of the century at least for one century is expressed as an offset included in the two characters representing a the month.
31. A computer system as claimed in claim 30, wherein the value of said two characters representing a month constitutes the value of said offset in addition to a numerical value in the range 1 - 12.
32. A computer system as claimed in claim 29, wherein said information indicative of the century at least for one century is expressed as an offset included in the two characters representing a the day.
33. A computer system as claimed in claim 32, wherein the value of said two characters representing a day constitutes the value of said offset in addition to a numerical value in the range 1 - 31.
34. A method of representing a date after December 31, 1999 in a computer system in which a date is represented in a six character format, with a day group of two characters representing a day, a month group of two characters representing a month, and a year group of two characters representing a year, the method comprising the step of replacing only one of the two characters in one of the day and month groups with a single new character that represents the replaced character and that indicates that the represented date is after December 31, 1999.
35. The method of claim 34, wherein the new character is a numerical character.
36. The method of claim 35, wherein the replacing step comprises the step of incrementing the largest possible numerical value of the replaced character by at least one so that the smallest numerical value of the numerical character is larger than the largest possible numerical value of the replaced character.
37. The method of claim 36, wherein the replaced character is a tens digit of the day group.
38. The method of claim 37, wherein the numerical character has a value from 4 to 7, and represents the tens digit of a day of the represented month and indicates that the represented date is after December 31, 1999.
39. The method of claim 36, wherein the replaced character is a tens digit of the month group.
40. The method of claim 39, wherein the numerical character has a value of 2 or 3, and represents the tens digit of a month of the represented year and indicates that the represented day is after December 31, 1999.
PCT/SE1998/000426 1997-07-30 1998-03-10 A computer system, arrangement and method for handling century information within a date representation WO1999006919A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
AU64286/98A AU6428698A (en) 1997-07-30 1998-03-10 A computer system, arrangement and method for handling century information within a date representation

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
SE9702828A SE9702828D0 (en) 1997-07-30 1997-07-30 Date in six-digit format
SE9702828-6 1997-07-30
US08/921,709 1997-09-02
US08/921,709 US5930506A (en) 1997-09-02 1997-09-02 Date format conversion for including century information in a six digit date representation

Publications (1)

Publication Number Publication Date
WO1999006919A1 true WO1999006919A1 (en) 1999-02-11

Family

ID=26663046

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/SE1998/000426 WO1999006919A1 (en) 1997-07-30 1998-03-10 A computer system, arrangement and method for handling century information within a date representation

Country Status (2)

Country Link
AU (1) AU6428698A (en)
WO (1) WO1999006919A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5600836A (en) * 1995-11-14 1997-02-04 Turn Of The Century Solution, Inc. System and method for processing date-dependent information which spans one or two centuries
US5630118A (en) * 1994-11-21 1997-05-13 2000, Inc. System and method for modifying and operating a computer system to perform date operations on date fields spanning centuries
US5644762A (en) * 1996-05-14 1997-07-01 Resolve 2000, Inc. Method and apparatus for recording and reading date data having coexisting formats
US5668989A (en) * 1996-09-18 1997-09-16 Mao; Decao Two-digit hybrid radix year numbers for year 2000 and beyond

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5630118A (en) * 1994-11-21 1997-05-13 2000, Inc. System and method for modifying and operating a computer system to perform date operations on date fields spanning centuries
US5600836A (en) * 1995-11-14 1997-02-04 Turn Of The Century Solution, Inc. System and method for processing date-dependent information which spans one or two centuries
US5644762A (en) * 1996-05-14 1997-07-01 Resolve 2000, Inc. Method and apparatus for recording and reading date data having coexisting formats
US5668989A (en) * 1996-09-18 1997-09-16 Mao; Decao Two-digit hybrid radix year numbers for year 2000 and beyond

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
RESEARCH DISCLOSURE, May 1986, No. 26552, Author: Anonymous, "Date Adjustment at Turn of Century". *

Also Published As

Publication number Publication date
AU6428698A (en) 1999-02-22

Similar Documents

Publication Publication Date Title
US5630118A (en) System and method for modifying and operating a computer system to perform date operations on date fields spanning centuries
JP3599740B2 (en) Numerical formatting framework
EP0268069B1 (en) Method of forming a message file in a computer
US4692896A (en) Method of processing a plurality of code systems
US6055365A (en) Code point translation for computer text, using state tables
US5819097A (en) Industrial controller compiler with expandable instruction set
US5832273A (en) System for deleting redundant instructions from high level language source code containing in-line assembly instructions
IE20010467A1 (en) A document processing system and method
US20060150141A1 (en) Method of weaving code fragments between programs using code fragment numbering
KR20120127204A (en) Method and apparatus for stabilized binary differencing
US5845286A (en) Date value reduction system
WO1999006919A1 (en) A computer system, arrangement and method for handling century information within a date representation
US5524227A (en) Method and system for formatting address strings into recognizable token sequences
US5930506A (en) Date format conversion for including century information in a six digit date representation
WO1999008187A1 (en) Software optimization system
CN109346160B (en) Data format processing method
CN112686019A (en) Vehicle sensor data analysis method, device and storage medium
EP0539965A2 (en) An electronic dictionary including a pointer file and a word information correction file
US20030200529A1 (en) Symbolic assembly language
WO1990004227A1 (en) Software manufacturing system
JP2010282248A (en) Programming language analysis execution program
CN114416039A (en) Data processing method, device and platform
EP0647900B1 (en) Parameter storage space allocation
CN117149713A (en) Method, device, equipment and storage medium for processing coded data
CN114998038A (en) Abnormal policy processing method and system

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AL AM AT AT AU AZ BA BB BG BR BY CA CH CN CU CZ CZ DE DE DK DK EE EE ES FI FI GB GE GH GM GW HU ID IL IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MD MG MK MN MW MX NO NZ PL PT RO RU SD SE SG SI SK SK SL TJ TM TR TT UA UG US UZ VN YU ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): GH GM KE LS MW SD SZ UG ZW AM AZ BY KG KZ MD RU TJ TM AT BE CH DE DK ES FI FR GB GR IE IT LU MC NL PT SE BF BJ CF CG CI CM GA GN ML MR NE SN TD TG

DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: KR

REG Reference to national code

Ref country code: DE

Ref legal event code: 8642

NENP Non-entry into the national phase

Ref country code: CA

122 Ep: pct application non-entry in european phase