The 1900 Date System vs. the 1904 Date System【自译】
link
Microsoft Excel supports two different date systems: the 1900 date system and the 1904 date system. This article describes the two date systems and the problems that you may encounter when you use workbooks that use different date systems.
微软的Excel支持两种不同的日期系统:1900日期系统和1904日期系统。这篇文章将讲述这两种日期系统,以及当你使用采取不同日期系统的工作簿时可能遇到的问题。
workbook【工作簿】
The 1900 Date System
In the 1900 date system, the first day that is supported is January 1, 1900. When you enter a date, the date is converted into a serial number that represents the number of elapsed days since January 1, 1900. For example, if you enter July 5, 1998, Microsoft Excel converts the date to the serial number 35981.
By default, Microsoft Excel for Windows and Microsoft Excel for Windows NT use the 1900 date system. The 1900 date system allows greater compatibility between Microsoft Excel and other spreadsheet programs, such as Lotus 1-2-3, that are designed to run under MS-DOS or Microsoft Windows.
1900日期系统
在1900日期系统中,所支持的第一天是1900年1月1日。当你输入一个日期,这个日期将会被转换为一个序列号,它代表从1900年1月1日至今流逝的天数,例如,若你输入1998年7月5日,Excel将把这个日期转换为序列号35981。【1900年1月1日为1,=DATEDIF(1900-1-1,1998-7-5,“”D)返回35981,DATEDIF中的日期最好用DATE函数输入。】
默认情况下,Windows和Windows NT系统的Excel都使用1900日期系统。1900日期系统允许Excel更好地兼容其他电子制表程序,比如设计用于MS-DOS和Windows系统的Lotus 1-2-3。【Microsoft Windows NT(New Technology)是Microsoft在1993年推出的面向工作站、网络服务器和大型计算机的网络操作系统,也可做PC操作系统。】
【serial number 序列号,编号 The serial number of an object is a number on that object which identifies it.】
【spreadsheet 电子制表程序】
The 1904 Date System
In the 1904 date system, the first day that is supported is January 1, 1904. When you enter a date, the date is converted into a serial number that represents the number of elapsed days since January 1, 1904. For example, if you enter July 5, 1998, Microsoft Excel converts the date to the serial number 34519.
By default, Microsoft Excel for the Macintosh uses the 1904 date system. Because of the design of early Macintosh computers, dates before January 1, 1904 were not supported; this design was intended to prevent problems related to the fact that 1900 was not a leap year. Note that if you switch to the 1900 date system, Microsoft Excel for the Macintosh does support dates as early as January 1, 1900.
1904日期系统
在1904日期系统中,所支持的第一天是1904年1月1日。当你输入一个日期,这个日期将会被转换为一个序列号,它代表从1904年1月1日至今流逝的天数,例如,若你输入1998年7月5日,Excel将把这个日期转换为序列号34519。【1904年1月1日为0,=DATEDIF(1904-1-1,1998-7-5,“”D)返回34519。】【为什么1900系统中1900年1月1日的序列号为1,1904系统中1904年1月1日的序列号为0?】
默认情况下,Macintosh系统的Excel都使用1904日期系统。由于早期Macintosh电脑的设计,早于1904年1月1日的日期将不被支持。因为1900年不是闰年,这个设计是用来预防由此会引发的问题。【什么问题?】注意,如果你转换为1900年日期系统,Macintosh中的Excel将不能支持像1900年1月1日那么早的日期。
The Difference Between the Date Systems
Because the two Date Systems use different starting days, the same date is represented by different serial numbers in each date system. For example, July 5, 1998 can have two different serial numbers.
Serial number
Date system of July 5, 1998
--------------------------------------------------
1900 date system 35981
1904 date system 34519
The difference between the two date systems is 1,462 days; that is, the serial number of a date in the 1900 Date System is always 1,462 days greater than the serial number of the same date in the 1904 date system. 1,462 days is equal to four years and one day (including one leap day).
两种日期系统的差异
由于这两种日期系统使用不同的开始日期,同一个日期在各个日期系统中用不同的序列号表示。例如1998年7月5日有两个不同的序列号。
1998年7月5日
日期系统 的序列号
----------------------------------------------------
1900日期系统 35981
1904日期系统 34519
两种日期系统中的差异是1462天,即,一个日期在1900日期系统中的序列号总比同一个日期在1904日期系统中的序列号大1462天。1462天就等于4年零一天(包括一个闰年)。
Setting the Date System for a Workbook
In Microsoft Excel, each workbook can have its own date system setting, even if multiple workbooks are open. You can set the date system for a workbook by following these steps:
Open or switch to the workbook.
On the Tools menu (or Edit menu in Excel 2001 for Mac), click Options or Preferences. Then, click the Calculation tab.
To use the 1900 date system in the workbook, click to clear the 1904 Date System check box. To use the 1904 date system in the workbook, click to select the check box.
Click OK.
Note that if you change the date system for a workbook that already contains dates, the dates shift by four years and one day. For information about correcting shifted dates, see the "Correcting Shifted Dates" section in this article.
对工作簿设定日期系统
在Excel中,即使有多个工作簿被打开了,每个工作簿都可以有自己的日期系统设定。你可以按照如下步骤设定一个工作簿的日期系统:
打开或转到一个工作簿。
在工具菜单(或在Mac的Excel 2001中的编辑菜单),点击选项或偏好。然后,点击计算标签。
要在工作簿中使用1900日期系统,点击清除1904日期系统前的复选框。
要在工作簿中使用1904日期系统,点击选择这个复选框。
点击完成。
【新版本的Excel在“Excel选项”中修改,点击“使用1904日期系统”前的复选框。】
注意,如果你改变了原本就包含日期的工作簿的日期系统,这些日期将会改变4年零一天。想知道如何修正改变的日期,查看文章的“修正改变的日期”部分。
Problems Linking and Copying Dates Between Workbooks
If two workbooks use different date systems, you may encounter problems when you link or copy dates between workbooks. Specifically, the dates may be shifted by four years and one day.
To see an example of this behavior, follow these steps:
In Microsoft Excel, create two new workbooks (Book1 and Book2).
Use the steps in the "Setting the Date System for a Workbook" section to use the 1900 date system in Book 1. Use the 1904 date system in Book2.
In Book1, enter the date July 5, 1998.
Select the cell that contains the date, and click Copy on the Edit menu.
Switch to Book2, select a cell, and click Paste on the Edit menu.
The date is pasted as July 6, 2002. Note that the date is four years and one day later than the date in step 3 because Book2 uses the 1904 date system.
In Book2, enter the date July 5, 1998. Select the cell that contains the date and click Copy on the Edit menu.
Switch to Book1, select a cell, and click Paste on the Edit menu.
The date is pasted as July 4, 1994. It has been shifted down by four years and one day because Book1 uses the 1900 date system.
在工作表之间链接和复制日期的问题
如果两个工作簿使用不同的日期系统,当你在工作簿之间链接或复制日期时将会遇到问题。明确来说,日期将转变4年零一天。
为了看到这种行为的一个例子,采取以下步骤:
在Excel中创建两个新的工作簿(Book1和Book2)。
采取“对工作簿设定日期系统”中的步骤,在Book1中使用1900日期系统,在Book2中使用1904日期系统。
在Book1中,输入日期1998年7月5日。
选择这个包含日期的单元格,点击编辑菜单的复制。
转到Book2,选择一个单元格,点击编辑菜单的粘贴。
粘贴后的日期是2002年7月6日。注意到,这个日期恰比第三步中的日期晚4年零一天,因为Book2使用1904系统。
在Book2中,输入日期1998年7月5日,选择这个包含日期的单元格,点击编辑菜单的复制。
转到Book1,选择一个单元格,点击编辑菜单的粘贴。
粘贴后的日期是1994年7月4日。注意到,这个日期变早了4年零一天,因为Book1使用1900系统。
Correcting Shifted Dates
If you link from or copy dates between workbooks, or if you change the date system for a workbook that already contains dates, the dates may be shifted by four years and one day. You can correct shifted dates by following these steps:
In an empty cell, enter the value 1462.
Select the cell. On the Edit menu, click Copy.
Select the cells that contain the shifted dates. On the Edit menu, click Paste Special.
In the Paste Special dialog box, click Values. Then, select either of the following option buttons.
Select this If
--------------------------------------------------------------------
Add The dates must be shifted up by four years and one
day.
Subtract The dates must be shifted down by four years and one
day.
Click OK.
Repeat these steps until all of the shifted dates have been corrected.
If you are using a formula to link to a date in another workbook, and if the date returned by the formula is incorrect because the workbooks use different date systems, modify the formula to return the correct date, for example:
=[Book2]Sheet1!$A$1+1462
=[Book1]Sheet1!$A$1-1462
In the formulas, 1,462 is added or deleted from the date value.
修正改变的日期
若在工作簿中链接或复制日期,或改变原本就包含日期的工作簿的日期系统,这些日期将改变4年零1天。可通过如下步骤修正改变的日期:
在一个空单元格输入1462。
选中单元格,在编辑菜单点击复制。
选中包含转换了的日期的单元格,在编辑菜单,点击选择性粘贴,
在选择性粘贴对话框,点击数值,然后,选择以下选择按钮之一。
选择 如果
--------------------------------------------------------------------
加 日期需要增加4年零1天。
减 日期需要减少4年零1天。
选择完成。
重复步骤直到所有改变的日期都被修正。
若使用公式链接到另一个工作簿中的日期,并且由于工作簿使用不同日期系统,由公式返回的日期并不正确,则修正公式以返回正确的日期,例如:
=[Book2]Sheet1!$A$1+1462
=[Book1]Sheet1!$A$1-1462
在这些公式中, 日期数值被加上或减去了1462。
Microsoft Excel supports two different date systems: the 1900 date system and the 1904 date system. This article describes the two date systems and the problems that you may encounter when you use workbooks that use different date systems.
微软的Excel支持两种不同的日期系统:1900日期系统和1904日期系统。这篇文章将讲述这两种日期系统,以及当你使用采取不同日期系统的工作簿时可能遇到的问题。
workbook【工作簿】
The 1900 Date System
In the 1900 date system, the first day that is supported is January 1, 1900. When you enter a date, the date is converted into a serial number that represents the number of elapsed days since January 1, 1900. For example, if you enter July 5, 1998, Microsoft Excel converts the date to the serial number 35981.
By default, Microsoft Excel for Windows and Microsoft Excel for Windows NT use the 1900 date system. The 1900 date system allows greater compatibility between Microsoft Excel and other spreadsheet programs, such as Lotus 1-2-3, that are designed to run under MS-DOS or Microsoft Windows.
1900日期系统
在1900日期系统中,所支持的第一天是1900年1月1日。当你输入一个日期,这个日期将会被转换为一个序列号,它代表从1900年1月1日至今流逝的天数,例如,若你输入1998年7月5日,Excel将把这个日期转换为序列号35981。【1900年1月1日为1,=DATEDIF(1900-1-1,1998-7-5,“”D)返回35981,DATEDIF中的日期最好用DATE函数输入。】
默认情况下,Windows和Windows NT系统的Excel都使用1900日期系统。1900日期系统允许Excel更好地兼容其他电子制表程序,比如设计用于MS-DOS和Windows系统的Lotus 1-2-3。【Microsoft Windows NT(New Technology)是Microsoft在1993年推出的面向工作站、网络服务器和大型计算机的网络操作系统,也可做PC操作系统。】
【serial number 序列号,编号 The serial number of an object is a number on that object which identifies it.】
【spreadsheet 电子制表程序】
The 1904 Date System
In the 1904 date system, the first day that is supported is January 1, 1904. When you enter a date, the date is converted into a serial number that represents the number of elapsed days since January 1, 1904. For example, if you enter July 5, 1998, Microsoft Excel converts the date to the serial number 34519.
By default, Microsoft Excel for the Macintosh uses the 1904 date system. Because of the design of early Macintosh computers, dates before January 1, 1904 were not supported; this design was intended to prevent problems related to the fact that 1900 was not a leap year. Note that if you switch to the 1900 date system, Microsoft Excel for the Macintosh does support dates as early as January 1, 1900.
1904日期系统
在1904日期系统中,所支持的第一天是1904年1月1日。当你输入一个日期,这个日期将会被转换为一个序列号,它代表从1904年1月1日至今流逝的天数,例如,若你输入1998年7月5日,Excel将把这个日期转换为序列号34519。【1904年1月1日为0,=DATEDIF(1904-1-1,1998-7-5,“”D)返回34519。】【为什么1900系统中1900年1月1日的序列号为1,1904系统中1904年1月1日的序列号为0?】
默认情况下,Macintosh系统的Excel都使用1904日期系统。由于早期Macintosh电脑的设计,早于1904年1月1日的日期将不被支持。因为1900年不是闰年,这个设计是用来预防由此会引发的问题。【什么问题?】注意,如果你转换为1900年日期系统,Macintosh中的Excel将不能支持像1900年1月1日那么早的日期。
The Difference Between the Date Systems
Because the two Date Systems use different starting days, the same date is represented by different serial numbers in each date system. For example, July 5, 1998 can have two different serial numbers.
Serial number
Date system of July 5, 1998
--------------------------------------------------
1900 date system 35981
1904 date system 34519
The difference between the two date systems is 1,462 days; that is, the serial number of a date in the 1900 Date System is always 1,462 days greater than the serial number of the same date in the 1904 date system. 1,462 days is equal to four years and one day (including one leap day).
两种日期系统的差异
由于这两种日期系统使用不同的开始日期,同一个日期在各个日期系统中用不同的序列号表示。例如1998年7月5日有两个不同的序列号。
1998年7月5日
日期系统 的序列号
----------------------------------------------------
1900日期系统 35981
1904日期系统 34519
两种日期系统中的差异是1462天,即,一个日期在1900日期系统中的序列号总比同一个日期在1904日期系统中的序列号大1462天。1462天就等于4年零一天(包括一个闰年)。
Setting the Date System for a Workbook
In Microsoft Excel, each workbook can have its own date system setting, even if multiple workbooks are open. You can set the date system for a workbook by following these steps:
Open or switch to the workbook.
On the Tools menu (or Edit menu in Excel 2001 for Mac), click Options or Preferences. Then, click the Calculation tab.
To use the 1900 date system in the workbook, click to clear the 1904 Date System check box. To use the 1904 date system in the workbook, click to select the check box.
Click OK.
Note that if you change the date system for a workbook that already contains dates, the dates shift by four years and one day. For information about correcting shifted dates, see the "Correcting Shifted Dates" section in this article.
对工作簿设定日期系统
在Excel中,即使有多个工作簿被打开了,每个工作簿都可以有自己的日期系统设定。你可以按照如下步骤设定一个工作簿的日期系统:
打开或转到一个工作簿。
在工具菜单(或在Mac的Excel 2001中的编辑菜单),点击选项或偏好。然后,点击计算标签。
要在工作簿中使用1900日期系统,点击清除1904日期系统前的复选框。
要在工作簿中使用1904日期系统,点击选择这个复选框。
点击完成。
【新版本的Excel在“Excel选项”中修改,点击“使用1904日期系统”前的复选框。】
注意,如果你改变了原本就包含日期的工作簿的日期系统,这些日期将会改变4年零一天。想知道如何修正改变的日期,查看文章的“修正改变的日期”部分。
Problems Linking and Copying Dates Between Workbooks
If two workbooks use different date systems, you may encounter problems when you link or copy dates between workbooks. Specifically, the dates may be shifted by four years and one day.
To see an example of this behavior, follow these steps:
In Microsoft Excel, create two new workbooks (Book1 and Book2).
Use the steps in the "Setting the Date System for a Workbook" section to use the 1900 date system in Book 1. Use the 1904 date system in Book2.
In Book1, enter the date July 5, 1998.
Select the cell that contains the date, and click Copy on the Edit menu.
Switch to Book2, select a cell, and click Paste on the Edit menu.
The date is pasted as July 6, 2002. Note that the date is four years and one day later than the date in step 3 because Book2 uses the 1904 date system.
In Book2, enter the date July 5, 1998. Select the cell that contains the date and click Copy on the Edit menu.
Switch to Book1, select a cell, and click Paste on the Edit menu.
The date is pasted as July 4, 1994. It has been shifted down by four years and one day because Book1 uses the 1900 date system.
在工作表之间链接和复制日期的问题
如果两个工作簿使用不同的日期系统,当你在工作簿之间链接或复制日期时将会遇到问题。明确来说,日期将转变4年零一天。
为了看到这种行为的一个例子,采取以下步骤:
在Excel中创建两个新的工作簿(Book1和Book2)。
采取“对工作簿设定日期系统”中的步骤,在Book1中使用1900日期系统,在Book2中使用1904日期系统。
在Book1中,输入日期1998年7月5日。
选择这个包含日期的单元格,点击编辑菜单的复制。
转到Book2,选择一个单元格,点击编辑菜单的粘贴。
粘贴后的日期是2002年7月6日。注意到,这个日期恰比第三步中的日期晚4年零一天,因为Book2使用1904系统。
在Book2中,输入日期1998年7月5日,选择这个包含日期的单元格,点击编辑菜单的复制。
转到Book1,选择一个单元格,点击编辑菜单的粘贴。
粘贴后的日期是1994年7月4日。注意到,这个日期变早了4年零一天,因为Book1使用1900系统。
Correcting Shifted Dates
If you link from or copy dates between workbooks, or if you change the date system for a workbook that already contains dates, the dates may be shifted by four years and one day. You can correct shifted dates by following these steps:
In an empty cell, enter the value 1462.
Select the cell. On the Edit menu, click Copy.
Select the cells that contain the shifted dates. On the Edit menu, click Paste Special.
In the Paste Special dialog box, click Values. Then, select either of the following option buttons.
Select this If
--------------------------------------------------------------------
Add The dates must be shifted up by four years and one
day.
Subtract The dates must be shifted down by four years and one
day.
Click OK.
Repeat these steps until all of the shifted dates have been corrected.
If you are using a formula to link to a date in another workbook, and if the date returned by the formula is incorrect because the workbooks use different date systems, modify the formula to return the correct date, for example:
=[Book2]Sheet1!$A$1+1462
=[Book1]Sheet1!$A$1-1462
In the formulas, 1,462 is added or deleted from the date value.
修正改变的日期
若在工作簿中链接或复制日期,或改变原本就包含日期的工作簿的日期系统,这些日期将改变4年零1天。可通过如下步骤修正改变的日期:
在一个空单元格输入1462。
选中单元格,在编辑菜单点击复制。
选中包含转换了的日期的单元格,在编辑菜单,点击选择性粘贴,
在选择性粘贴对话框,点击数值,然后,选择以下选择按钮之一。
选择 如果
--------------------------------------------------------------------
加 日期需要增加4年零1天。
减 日期需要减少4年零1天。
选择完成。
重复步骤直到所有改变的日期都被修正。
若使用公式链接到另一个工作簿中的日期,并且由于工作簿使用不同日期系统,由公式返回的日期并不正确,则修正公式以返回正确的日期,例如:
=[Book2]Sheet1!$A$1+1462
=[Book1]Sheet1!$A$1-1462
在这些公式中, 日期数值被加上或减去了1462。