xref: /AOO41X/main/helpcontent2/source/text/scalc/guide/year2000.xhp (revision 67e470dafe1997e73f56ff7ff4878983707e3e07)
1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2cdf0e10cSrcweir
3cdf0e10cSrcweir
4*ce44d6c1SAndrew Rist<!--***********************************************************
5cdf0e10cSrcweir *
6*ce44d6c1SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
7*ce44d6c1SAndrew Rist * or more contributor license agreements.  See the NOTICE file
8*ce44d6c1SAndrew Rist * distributed with this work for additional information
9*ce44d6c1SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
10*ce44d6c1SAndrew Rist * to you under the Apache License, Version 2.0 (the
11*ce44d6c1SAndrew Rist * "License"); you may not use this file except in compliance
12*ce44d6c1SAndrew Rist * with the License.  You may obtain a copy of the License at
13cdf0e10cSrcweir *
14*ce44d6c1SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
15cdf0e10cSrcweir *
16*ce44d6c1SAndrew Rist * Unless required by applicable law or agreed to in writing,
17*ce44d6c1SAndrew Rist * software distributed under the License is distributed on an
18*ce44d6c1SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19*ce44d6c1SAndrew Rist * KIND, either express or implied.  See the License for the
20*ce44d6c1SAndrew Rist * specific language governing permissions and limitations
21*ce44d6c1SAndrew Rist * under the License.
22cdf0e10cSrcweir *
23*ce44d6c1SAndrew Rist ***********************************************************-->
24*ce44d6c1SAndrew Rist
25*ce44d6c1SAndrew Rist
26cdf0e10cSrcweir
27cdf0e10cSrcweir<helpdocument version="1.0">
28cdf0e10cSrcweir<meta>
29cdf0e10cSrcweir<topic id="textscalcguideyear2000xml" indexer="include" status="PUBLISH">
30cdf0e10cSrcweir<title id="tit" xml-lang="en-US">19xx/20xx Years</title>
31cdf0e10cSrcweir<filename>/text/scalc/guide/year2000.xhp</filename>
32cdf0e10cSrcweir</topic>
33cdf0e10cSrcweir<history>
34cdf0e10cSrcweir<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
35cdf0e10cSrcweir<lastedited date="2004-09-27T11:53:17">converted from old format - fpe</lastedited>
36cdf0e10cSrcweir</history>
37cdf0e10cSrcweir</meta>
38cdf0e10cSrcweir<body>
39cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="index" id="bm_id3150439"><bookmark_value>years; 2-digits</bookmark_value>
40cdf0e10cSrcweir<bookmark_value>dates; 19xx/20xx</bookmark_value>
41cdf0e10cSrcweir</bookmark>
42cdf0e10cSrcweir<paragraph role="heading" id="hd_id3150439" xml-lang="en-US" level="1" l10n="U" oldref="18"><variable id="year2000"><link href="text/scalc/guide/year2000.xhp" name="19xx/20xx Years">19xx/20xx Years</link>
43cdf0e10cSrcweir</variable></paragraph>
44cdf0e10cSrcweir<section id="text">
45cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3151116" xml-lang="en-US" l10n="U" oldref="17">The year in a date entry is often entered as two digits. Internally, the year is managed by $[officename] as four digits, so that in the calculation of the difference from 1/1/99 to 1/1/01, the result will correctly be two years.</paragraph>
46cdf0e10cSrcweir<list type="unordered">
47cdf0e10cSrcweir<listitem>
48cdf0e10cSrcweir<paragraph role="listitem" id="par_id3154011" xml-lang="en-US" l10n="U" oldref="19">Under <emph><switchinline select="sys"><caseinline select="MAC">%PRODUCTNAME - Preferences</caseinline><defaultinline>Tools - Options</defaultinline></switchinline> - $[officename] - General</emph> you can define the century that is used when you enter a year with only two digits. The default is 1930 to 2029.</paragraph>
49cdf0e10cSrcweir</listitem>
50cdf0e10cSrcweir</list>
51cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3150010" xml-lang="en-US" l10n="U" oldref="20">This means that if you enter a date of 1/1/30 or higher, it will be treated internally as 1/1/1930 or higher. All lower two-digit years apply to the 20xx century. So, for example, 1/1/20 is converted into 1/1/2020.</paragraph>
52cdf0e10cSrcweir</section>
53cdf0e10cSrcweir<section id="relatedtopics">
54cdf0e10cSrcweir<embed href="text/scalc/guide/calc_date.xhp#calc_date"/>
55cdf0e10cSrcweir</section>
56cdf0e10cSrcweir</body>
57cdf0e10cSrcweir</helpdocument>
58