Update ooo320-m1
[ooovba.git] / helpcontent2 / source / text / scalc / 01 / func_time.xhp
blob07f95dfed60bf99a42eeecbc93cb89272ba48e9f
1 <?xml version="1.0" encoding="UTF-8"?>
5 <!--
6 ***********************************************************************
8 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9 *
10 * Copyright 2008 by Sun Microsystems, Inc.
12 * OpenOffice.org - a multi-platform office productivity suite
14 * $RCSfile: func_time.xhp,v $
15 * $Revision: 1.11 $
17 * This file is part of OpenOffice.org.
19 * OpenOffice.org is free software: you can redistribute it and/or modify
20 * it under the terms of the GNU Lesser General Public License version 3
21 * only, as published by the Free Software Foundation.
23 * OpenOffice.org is distributed in the hope that it will be useful,
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 * GNU Lesser General Public License version 3 for more details
27 * (a copy is included in the LICENSE file that accompanied this code).
29 * You should have received a copy of the GNU Lesser General Public License
30 * version 3 along with OpenOffice.org. If not, see
31 * <http://www.openoffice.org/license.html>
32 * for a copy of the LGPLv3 License.
34 ************************************************************************
35 -->
38 <helpdocument version="1.0">
39 <meta>
40 <topic id="textscalc01func_timexml" indexer="include" status="PUBLISH">
41 <title id="tit" xml-lang="en-US">TIME </title>
42 <filename>/text/scalc/01/func_time.xhp</filename>
43 </topic>
44 </meta>
45 <body>
46 <bookmark xml-lang="en-US" branch="index" id="bm_id3154073"><bookmark_value>TIME function</bookmark_value>
47 </bookmark>
48 <bookmark xml-lang="en-US" branch="hid/HID_FUNC_ZEIT" id="bm_id3150289" localize="false"/><paragraph role="heading" id="hd_id3154073" xml-lang="en-US" level="2" l10n="U" oldref="149"><variable id="time"><link href="text/scalc/01/func_time.xhp">TIME</link>
49 </variable></paragraph>
50 <paragraph role="paragraph" id="par_id3145762" xml-lang="en-US" l10n="U" oldref="150"><ahelp hid="HID_FUNC_ZEIT">TIME returns the current time value from values for hours, minutes and seconds.</ahelp> This function can be used to convert a time based on these three elements to a decimal time value.</paragraph>
51 <paragraph role="heading" id="hd_id3155550" xml-lang="en-US" level="3" l10n="U" oldref="151">Syntax</paragraph>
52 <paragraph role="code" id="par_id3154584" xml-lang="en-US" l10n="U" oldref="152">TIME(Hour; Minute; Second)</paragraph>
53 <paragraph role="paragraph" id="par_id3152904" xml-lang="en-US" l10n="U" oldref="153">Use an integer to set the <emph>Hour</emph>.</paragraph>
54 <paragraph role="paragraph" id="par_id3151346" xml-lang="en-US" l10n="U" oldref="154">Use an integer to set the <emph>Minute</emph>.</paragraph>
55 <paragraph role="paragraph" id="par_id3151366" xml-lang="en-US" l10n="U" oldref="155">Use an integer to set the <emph>Second</emph>.</paragraph>
56 <paragraph role="heading" id="hd_id3145577" xml-lang="en-US" level="3" l10n="U" oldref="156">Examples</paragraph>
57 <paragraph role="paragraph" id="par_id3156076" xml-lang="en-US" l10n="CHG" oldref="157">
58 <item type="input">=TIME(0;0;0)</item> returns 00:00:00</paragraph>
59 <paragraph role="paragraph" id="par_id3156090" xml-lang="en-US" l10n="CHG" oldref="158">
60 <item type="input">=TIME(4;20;4)</item> returns 04:20:04</paragraph>
61 </body>
62 </helpdocument>