summaryrefslogtreecommitdiff
path: root/helpcontent2/source/text/scalc/01/04060102.xhp
blob: 94bbc7c775e0cacd0a1482510212947fdfa23efa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<?xml version="1.0" encoding="UTF-8"?>
<!--***********************************************************************
 *
 *  The Contents of this file are made available subject to the terms of
 *  either of the following licenses
 *
 *         - GNU Lesser General Public License Version 2.1
 *         - Sun Industry Standards Source License Version 1.1
 *
 *  Sun Microsystems Inc., October, 2000
 *
 *  GNU Lesser General Public License Version 2.1
 *  =============================================
 *  Copyright 2000 by Sun Microsystems, Inc.
 *  901 San Antonio Road, Palo Alto, CA 94303, USA
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License version 2.1, as published by the Free Software Foundation.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 *  MA  02111-1307  USA
 *
 *
 *  Sun Industry Standards Source License Version 1.1
 *  =================================================
 *  The contents of this file are subject to the Sun Industry Standards
 *  Source License Version 1.1 (the "License"); You may not use this file
 *  except in compliance with the License. You may obtain a copy of the
 *  License at http://www.openoffice.org/license.html.
 *
 *  Software provided under this License is provided on an "AS IS" basis,
 *  WITHOUT WARRUNTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING,
 *  WITHOUT LIMITATION, WARRUNTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
 *  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
 *  See the License for the specific provisions governing your rights and
 *  obligations concerning the Software.
 *
 *  The Initial Developer of the Original Code is: Sun Microsystems, Inc..
 *
 *  Copyright: 2000 by Sun Microsystems, Inc.
 *
 *  All Rights Reserved.
 *
 *  Contributor(s): _______________________________________
 *
 *
 ************************************************************************-->
	
<helpdocument version="1.0">
<meta>
<topic id="textscalc0104060102xml" indexer="include" status="DRAFT">
<title id="tit" xml-lang="en-US">Date &amp; Time Functions</title>
<filename>/text/scalc/01/04060102.xhp</filename>
</topic>
<history>
<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
<lastedited date="2004-08-10T10:40:26">converted from old format - fpe</lastedited>
</history>
</meta>
<body>
<bookmark xml-lang="en-US" branch="index" id="bm_id3154536"><bookmark_value>date and time functions</bookmark_value>
<bookmark_value>functions; date &amp; time</bookmark_value>
<bookmark_value>Function Wizard; date &amp; time</bookmark_value>
</bookmark>
<paragraph role="heading" id="hd_id3154536" xml-lang="en-US" level="1" l10n="U" oldref="1">Date &amp; Time Functions</paragraph>
<paragraph role="paragraph" id="par_id3153973" xml-lang="en-US" l10n="U" oldref="2"><variable id="datumzeittext">These spreadsheet functions are used for inserting and editing dates and times. 
</variable></paragraph>
<section id="howtoget">
<paragraph role="paragraph" id="par_idN1063F" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/00/00000404.xhp#eikadaze"/>
</paragraph>
</section>
<paragraph role="paragraph" id="par_id3150437" xml-lang="en-US" l10n="U" oldref="170">$[officename] internally handles a date/time value as a numerical value. If you assign the numbering format "Number" to a date or time value, it is converted to a number. For example, 01/01/2000 12:00 PM, converts to 36526.5. The value preceding the decimal point corresponds to the date; the value following the decimal point corresponds to the time. If you do not want to see this type of numerical date or time representation, change the number format (date or time) accordingly. To do this, select the cell containing the date or time value, call its context menu and select <emph>Format Cells</emph>. The <emph>Numbers</emph> tab page contains the functions for defining the number format.</paragraph>
<paragraph role="paragraph" id="par_id3149720" xml-lang="en-US" l10n="U" oldref="183">In <emph>Tools - Options - $[officename] - General</emph> you find the area <emph>Year (two digits)</emph>. This sets the period for which two-digit information applies. Note that changes made here have an effect on some of the following functions.</paragraph>
<paragraph role="note" id="par_id3150654" xml-lang="en-US" l10n="U" oldref="185">When entering dates, slashes or dashes used as date separators may be interpreted as arithmetic operators. Therefore, dates entered in this format are not always recognized as dates and result in erroneous calculations. To keep dates from being interpreted as parts of formulas, place them in quotation marks, for example, "07/20/54".</paragraph>
<paragraph role="heading" id="par_idN1067A" xml-lang="en-US" level="2" l10n="NEW">Functions</paragraph>
<sort order="asc">
<section id="workday">
<paragraph role="paragraph" id="par_idN1067E" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/01/func_workday.xhp#workday"/>
</paragraph>
</section>
<section id="yearfrac">
<paragraph role="paragraph" id="par_idN1067E" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/01/func_yearfrac.xhp#yearfrac"/>
</paragraph>
</section>
<section id="date">
<paragraph role="paragraph" id="par_idN10686" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/01/func_date.xhp#date"/>
</paragraph>
</section>
<section id="datevalue">
<paragraph role="paragraph" id="par_idN1068E" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/01/func_datevalue.xhp#datevalue"/>
</paragraph>
</section>
<section id="edate">
<paragraph role="paragraph" id="par_idN10696" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/01/func_edate.xhp#edate"/>
</paragraph>
</section>
<section id="today">
<paragraph role="paragraph" id="par_idN1069E" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/01/func_today.xhp#today"/>
</paragraph>
</section>
<section id="year">
<paragraph role="paragraph" id="par_idN106B0" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/01/func_year.xhp#year"/>
</paragraph>
</section>
<section id="now">
<paragraph role="paragraph" id="par_idN106B8" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/01/func_now.xhp#now"/>
</paragraph>
</section>
<section id="weeknum">
<paragraph role="paragraph" id="par_idN106C0" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/01/func_weeknum.xhp#weeknum"/>
</paragraph>
</section>
<section id="weeknumadd">
<paragraph role="paragraph" id="par_idN106C8" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/01/func_weeknumadd.xhp#weeknumadd"/>
</paragraph>
</section>
<section id="minute">
<paragraph role="paragraph" id="par_idN106D0" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/01/func_minute.xhp#minute"/>
</paragraph>
</section>
<section id="month">
<paragraph role="paragraph" id="par_idN106D8" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/01/func_month.xhp#month"/>
</paragraph>
</section>
<section id="eomonth">
<paragraph role="paragraph" id="par_idN106E0" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/01/func_eomonth.xhp#eomonth"/>
</paragraph>
</section>
<section id="networkdays">
<paragraph role="paragraph" id="par_idN106E8" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/01/func_networkdays.xhp#networkdays"/>
</paragraph>
</section>
<section id="eastersunday">
<paragraph role="paragraph" id="par_id1998688" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/01/func_eastersunday.xhp#eastersunday"/>
</paragraph>
</section>
<section id="second">
<paragraph role="paragraph" id="par_idN10830" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/01/func_second.xhp#second"/>
</paragraph>
</section>
<section id="hour">
<paragraph role="paragraph" id="par_idN1084B" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/01/func_hour.xhp#hour"/>
</paragraph>
</section>
<section id="day">
<paragraph role="paragraph" id="par_idN10866" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/01/func_day.xhp#day"/>
</paragraph>
</section>
<section id="days">
<paragraph role="paragraph" id="par_idN10881" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/01/func_days.xhp#days"/>
</paragraph>
</section>
<section id="days360">
<paragraph role="paragraph" id="par_idN1089C" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/01/func_days360.xhp#days360"/>
</paragraph>
</section>
<section id="weekday">
<paragraph role="paragraph" id="par_idN108B7" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/01/func_weekday.xhp#weekday"/>
</paragraph>
</section>
<section id="time">
<paragraph role="paragraph" id="par_idN108D2" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/01/func_time.xhp#time"/>
</paragraph>
</section>
<section id="timevalue">
<paragraph role="paragraph" id="par_idN108ED" xml-lang="en-US" l10n="NEW">
<embedvar href="text/scalc/01/func_timevalue.xhp#timevalue"/>
</paragraph>
</section>
</sort>
</body>
</helpdocument>