1<?xml version="1.0" encoding="UTF-8"?>
2
3<!--***********************************************************
4 *
5 * Licensed to the Apache Software Foundation (ASF) under one
6 * or more contributor license agreements.  See the NOTICE file
7 * distributed with this work for additional information
8 * regarding copyright ownership.  The ASF licenses this file
9 * to you under the Apache License, Version 2.0 (the
10 * "License"); you may not use this file except in compliance
11 * with the License.  You may obtain a copy of the License at
12 *
13 *   http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing,
16 * software distributed under the License is distributed on an
17 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18 * KIND, either express or implied.  See the License for the
19 * specific language governing permissions and limitations
20 * under the License.
21 *
22 ***********************************************************-->
23
24<helpdocument version="1.0">
25<meta>
26<topic id="textscalcguideyear2000xml" indexer="include" status="PUBLISH">
27<title id="tit" xml-lang="en-US">19xx/20xx Years</title>
28<filename>/text/scalc/guide/year2000.xhp</filename>
29</topic>
30</meta>
31<body>
32<bookmark xml-lang="en-US" branch="index" id="bm_id3150439">
33<bookmark_value>years; 2-digits</bookmark_value>
34<bookmark_value>dates; 19xx/20xx</bookmark_value>
35</bookmark>
36<paragraph role="heading" id="hd_id3150439" xml-lang="en-US" level="1" l10n="U"><variable id="year2000"><link href="text/scalc/guide/year2000.xhp" name="19xx/20xx Years">19xx/20xx Years</link>
37</variable></paragraph>
38<section id="text">
39<paragraph role="paragraph" id="par_id3151116" xml-lang="en-US" l10n="U">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>
40<list type="unordered">
41<listitem>
42<paragraph role="listitem" id="par_id3154011" xml-lang="en-US" l10n="U">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>
43</listitem>
44</list>
45<paragraph role="paragraph" id="par_id3150010" xml-lang="en-US" l10n="U">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>
46</section>
47<section id="relatedtopics">
48<embed href="text/scalc/guide/calc_date.xhp#calc_date"/>
49</section>
50</body>
51</helpdocument>
52