summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-09-10 16:18:36 +0200
committerCaolán McNamara <caolanm@redhat.com>2013-09-17 12:24:01 +0000
commitd78c3cb249a11ea45542d340754e960d47a35fa6 (patch)
treea92120a645550345f7d8c3bc2c4c625e452c78a2
parent0d8b37cd9e0b89d1136b09a81671c88fc91fee3e (diff)
documentation for new UNO Date/Time/DateTime struct <-> Basic Time conversionscp-4.1-branch-pointcp-4.1-1
Change-Id: I8679534affa1ac5ee22393189188ff1ac09aa0f5 Reviewed-on: https://gerrit.libreoffice.org/5945 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--source/auxiliary/sbasic.tree6
-rw-r--r--source/text/sbasic/shared/03030111.xhp58
-rw-r--r--source/text/sbasic/shared/03030112.xhp58
-rw-r--r--source/text/sbasic/shared/03030113.xhp58
-rw-r--r--source/text/sbasic/shared/03030114.xhp58
-rw-r--r--source/text/sbasic/shared/03030115.xhp57
-rw-r--r--source/text/sbasic/shared/03030116.xhp57
7 files changed, 352 insertions, 0 deletions
diff --git a/source/auxiliary/sbasic.tree b/source/auxiliary/sbasic.tree
index 054daad09..c04ca39c0 100644
--- a/source/auxiliary/sbasic.tree
+++ b/source/auxiliary/sbasic.tree
@@ -58,6 +58,12 @@
<topic id="sbasic/text/sbasic/shared/03010301.xhp">Blue Function [Runtime]</topic>
<topic id="sbasic/text/sbasic/shared/03100100.xhp">CBool Function [Runtime]</topic>
<topic id="sbasic/text/sbasic/shared/03120105.xhp">CByte Function [Runtime]</topic>
+<topic id="sbasic/text/sbasic/shared/03030116.xhp">CDateFromUnoDateTime Function [Runtime]</topic>
+<topic id="sbasic/text/sbasic/shared/03030115.xhp">CDateToUnoDateTime Function [Runtime]</topic>
+<topic id="sbasic/text/sbasic/shared/03030114.xhp">CDateFromUnoTime Function [Runtime]</topic>
+<topic id="sbasic/text/sbasic/shared/03030113.xhp">CDateToUnoTime Function [Runtime]</topic>
+<topic id="sbasic/text/sbasic/shared/03030112.xhp">CDateFromUnoDate Function [Runtime]</topic>
+<topic id="sbasic/text/sbasic/shared/03030111.xhp">CDateToUnoDate Function [Runtime]</topic>
<topic id="sbasic/text/sbasic/shared/03030108.xhp">CDateFromIso Function [Runtime]</topic>
<topic id="sbasic/text/sbasic/shared/03030107.xhp">CDateToIso Function [Runtime]</topic>
<topic id="sbasic/text/sbasic/shared/03100300.xhp">CDate Function [Runtime]</topic>
diff --git a/source/text/sbasic/shared/03030111.xhp b/source/text/sbasic/shared/03030111.xhp
new file mode 100644
index 000000000..e80b20d88
--- /dev/null
+++ b/source/text/sbasic/shared/03030111.xhp
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+
+<!--
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 .
+ -->
+
+<helpdocument version="1.0">
+ <meta>
+ <topic id="textsbasicshared03030111xml" indexer="include" status="PUBLISH">
+ <title id="tit" xml-lang="en-US">CDateToUnoDate Function [Runtime]</title>
+ <filename>/text/sbasic/shared/03030111.xhp</filename>
+ </topic>
+ <history>
+ <created date="2013-09-10T15:34:00">Lionel Elie Mamane</created>
+ <lastedited date="2013-09-10T15:34:00">Created as fork of 030107.xhp</lastedited>
+ </history>
+ </meta>
+ <body>
+ <section id="cdatetounodate">
+ <bookmark xml-lang="en-US" branch="index" id="bm_id3150620"><bookmark_value>CDateToUnoDate function</bookmark_value></bookmark>
+ <paragraph role="heading" id="hd_id3150620" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03030111.xhp" name="CDateToUnoDate Function [Runtime]">CDateToUnoDate Function [Runtime]</link></paragraph>
+ <paragraph role="paragraph" id="par_id3151097" xml-lang="en-US" l10n="U" oldref="2">Returns the date as a UNO com.sun.star.util.Date struct.</paragraph>
+ </section>
+ <paragraph role="heading" id="hd_id3159224" xml-lang="en-US" level="2" l10n="U" oldref="3">Syntax:</paragraph>
+ <bascode>
+ <paragraph role="bascode" id="par_id3149497" xml-lang="en-US" oldref="4">CDateToUnoDate(aDate)</paragraph>
+ </bascode>
+ <paragraph role="heading" id="hd_id3152347" xml-lang="en-US" level="2" l10n="U" oldref="5">Return value:</paragraph>
+ <paragraph role="paragraph" id="par_id3154422" xml-lang="en-US" l10n="U" oldref="6">com.sun.star.util.Date</paragraph>
+ <paragraph role="heading" id="hd_id3147303" xml-lang="en-US" level="2" l10n="U" oldref="7">Parameters:</paragraph>
+ <paragraph role="paragraph" id="par_id3145136" xml-lang="en-US" l10n="U" oldref="8">
+ <emph>aDate:</emph>Date to convert</paragraph>
+ <embed href="text/sbasic/shared/00000003.xhp#errorcode"/>
+ <embed href="text/sbasic/shared/00000003.xhp#err5"/>
+ <paragraph role="heading" id="hd_id3147243" xml-lang="en-US" level="2" l10n="U" oldref="9">Example:</paragraph>
+ <bascode>
+ <paragraph role="bascode" localize="false" xml-lang="en-US">Sub ExampleCDateToUnoDate</paragraph>
+ <paragraph role="bascode" id="par_id3153126" xml-lang="en-US" l10n="U"> aDatabaseRow.updateDate(3, CDateToUnoDate(Now))</paragraph>
+ <paragraph role="bascode" id="par_id3153127" xml-lang="en-US" l10n="U"> aDateControl.Date = CDateToUnoDate(Now)</paragraph>
+ <paragraph role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph>
+ </bascode>
+</body>
+</helpdocument>
diff --git a/source/text/sbasic/shared/03030112.xhp b/source/text/sbasic/shared/03030112.xhp
new file mode 100644
index 000000000..864ce7ce1
--- /dev/null
+++ b/source/text/sbasic/shared/03030112.xhp
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+
+<!--
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 .
+ -->
+
+<helpdocument version="1.0">
+ <meta>
+ <topic id="textsbasicshared03030112xml" indexer="include" status="PUBLISH">
+ <title id="tit" xml-lang="en-US">CDateFromUnoDate Function [Runtime]</title>
+ <filename>/text/sbasic/shared/03030112.xhp</filename>
+ </topic>
+ <history>
+ <created date="2013-09-10T16:00:00">Lionel Elie Mamane</created>
+ <lastedited date="2013-09-10T16:00:00">Created as fork of 030111.xhp</lastedited>
+ </history>
+ </meta>
+ <body>
+ <section id="cdatefromunodate">
+ <bookmark xml-lang="en-US" branch="index" id="bm_id3150620"><bookmark_value>CDateFromUnoDate function</bookmark_value></bookmark>
+ <paragraph role="heading" id="hd_id3150620" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03030112.xhp" name="CDateFromUnoDate Function [Runtime]">CDateFromUnoDate Function [Runtime]</link></paragraph>
+ <paragraph role="paragraph" id="par_id3151097" xml-lang="en-US" l10n="U" oldref="2">Converts a UNO com.sun.star.util.Date struct to a Date value.</paragraph>
+ </section>
+ <paragraph role="heading" id="hd_id3159224" xml-lang="en-US" level="2" l10n="U" oldref="3">Syntax:</paragraph>
+ <bascode>
+ <paragraph role="bascode" id="par_id3149497" xml-lang="en-US" oldref="4">CDateFromUnoDate(aDate)</paragraph>
+ </bascode>
+ <paragraph role="heading" id="hd_id3152347" xml-lang="en-US" level="2" l10n="U" oldref="5">Return value:</paragraph>
+ <paragraph role="paragraph" id="par_id3154422" xml-lang="en-US" l10n="U" oldref="6">Date</paragraph>
+ <paragraph role="heading" id="hd_id3147303" xml-lang="en-US" level="2" l10n="U" oldref="7">Parameters:</paragraph>
+ <paragraph role="paragraph" id="par_id3145136" xml-lang="en-US" l10n="U" oldref="8">
+ <emph>aDate:</emph>Date to convert</paragraph>
+ <embed href="text/sbasic/shared/00000003.xhp#errorcode"/>
+ <embed href="text/sbasic/shared/00000003.xhp#err5"/>
+ <paragraph role="heading" id="hd_id3147243" xml-lang="en-US" level="2" l10n="U" oldref="9">Example:</paragraph>
+ <bascode>
+ <paragraph role="bascode" localize="false" xml-lang="en-US">Sub ExampleCDateFromUnoDate</paragraph>
+ <paragraph role="bascode" id="par_id3153126" xml-lang="en-US" l10n="U"> MsgBox(aDatabaseRow.getDate(3))</paragraph>
+ <paragraph role="bascode" id="par_id3153127" xml-lang="en-US" l10n="U"> MsgBox(CDateFromUnoDate(aDateControl.Date))</paragraph>
+ <paragraph role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph>
+ </bascode>
+</body>
+</helpdocument>
diff --git a/source/text/sbasic/shared/03030113.xhp b/source/text/sbasic/shared/03030113.xhp
new file mode 100644
index 000000000..e72af81f8
--- /dev/null
+++ b/source/text/sbasic/shared/03030113.xhp
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+
+<!--
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 .
+ -->
+
+<helpdocument version="1.0">
+ <meta>
+ <topic id="textsbasicshared03030113xml" indexer="include" status="PUBLISH">
+ <title id="tit" xml-lang="en-US">CDateToUnoDate Function [Runtime]</title>
+ <filename>/text/sbasic/shared/03030113.xhp</filename>
+ </topic>
+ <history>
+ <created date="2013-09-10T16:07:00">Lionel Elie Mamane</created>
+ <lastedited date="2013-09-10T16:07:00">Created as fork of 030111.xhp</lastedited>
+ </history>
+ </meta>
+ <body>
+ <section id="cdatetounotime">
+ <bookmark xml-lang="en-US" branch="index" id="bm_id3150620"><bookmark_value>CDateToUnoTime function</bookmark_value></bookmark>
+ <paragraph role="heading" id="hd_id3150620" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03030113.xhp" name="CDateToUnoTime Function [Runtime]">CDateToUnoTime Function [Runtime]</link></paragraph>
+ <paragraph role="paragraph" id="par_id3151097" xml-lang="en-US" l10n="U" oldref="2">Returns the time part of the date as a UNO com.sun.star.util.Time struct.</paragraph>
+ </section>
+ <paragraph role="heading" id="hd_id3159224" xml-lang="en-US" level="2" l10n="U" oldref="3">Syntax:</paragraph>
+ <bascode>
+ <paragraph role="bascode" id="par_id3149497" xml-lang="en-US" oldref="4">CDateToUnoTime(aDate)</paragraph>
+ </bascode>
+ <paragraph role="heading" id="hd_id3152347" xml-lang="en-US" level="2" l10n="U" oldref="5">Return value:</paragraph>
+ <paragraph role="paragraph" id="par_id3154422" xml-lang="en-US" l10n="U" oldref="6">com.sun.star.util.Time</paragraph>
+ <paragraph role="heading" id="hd_id3147303" xml-lang="en-US" level="2" l10n="U" oldref="7">Parameters:</paragraph>
+ <paragraph role="paragraph" id="par_id3145136" xml-lang="en-US" l10n="U" oldref="8">
+ <emph>aDate:</emph>Date value to convert</paragraph>
+ <embed href="text/sbasic/shared/00000003.xhp#errorcode"/>
+ <embed href="text/sbasic/shared/00000003.xhp#err5"/>
+ <paragraph role="heading" id="hd_id3147243" xml-lang="en-US" level="2" l10n="U" oldref="9">Example:</paragraph>
+ <bascode>
+ <paragraph role="bascode" localize="false" xml-lang="en-US">Sub ExampleCDateToUnoTime</paragraph>
+ <paragraph role="bascode" id="par_id3153126" xml-lang="en-US" l10n="U"> aDatabaseRow.updateTime(3, CDateToUnoTime(Now))</paragraph>
+ <paragraph role="bascode" id="par_id3153127" xml-lang="en-US" l10n="U"> aTimeControl.Time = CDateToUnoTime(Now)</paragraph>
+ <paragraph role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph>
+ </bascode>
+</body>
+</helpdocument>
diff --git a/source/text/sbasic/shared/03030114.xhp b/source/text/sbasic/shared/03030114.xhp
new file mode 100644
index 000000000..7eb540b4c
--- /dev/null
+++ b/source/text/sbasic/shared/03030114.xhp
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+
+<!--
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 .
+ -->
+
+<helpdocument version="1.0">
+ <meta>
+ <topic id="textsbasicshared03030114xml" indexer="include" status="PUBLISH">
+ <title id="tit" xml-lang="en-US">CDateFromUnoTime Function [Runtime]</title>
+ <filename>/text/sbasic/shared/03030114.xhp</filename>
+ </topic>
+ <history>
+ <created date="2013-09-10T16:00:00">Lionel Elie Mamane</created>
+ <lastedited date="2013-09-10T16:00:00">Created as fork of 030111.xhp</lastedited>
+ </history>
+ </meta>
+ <body>
+ <section id="cdatefromunotime">
+ <bookmark xml-lang="en-US" branch="index" id="bm_id3150620"><bookmark_value>CDateFromUnoTime function</bookmark_value></bookmark>
+ <paragraph role="heading" id="hd_id3150620" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03030114.xhp" name="CDateFromUnoTime Function [Runtime]">CDateFromUnoTime Function [Runtime]</link></paragraph>
+ <paragraph role="paragraph" id="par_id3151097" xml-lang="en-US" l10n="U" oldref="2">Converts a UNO com.sun.star.util.Time struct to a Date value.</paragraph>
+ </section>
+ <paragraph role="heading" id="hd_id3159224" xml-lang="en-US" level="2" l10n="U" oldref="3">Syntax:</paragraph>
+ <bascode>
+ <paragraph role="bascode" id="par_id3149497" xml-lang="en-US" oldref="4">CDateFromUnoTime(aTime)</paragraph>
+ </bascode>
+ <paragraph role="heading" id="hd_id3152347" xml-lang="en-US" level="2" l10n="U" oldref="5">Return value:</paragraph>
+ <paragraph role="paragraph" id="par_id3154422" xml-lang="en-US" l10n="U" oldref="6">Date</paragraph>
+ <paragraph role="heading" id="hd_id3147303" xml-lang="en-US" level="2" l10n="U" oldref="7">Parameters:</paragraph>
+ <paragraph role="paragraph" id="par_id3145136" xml-lang="en-US" l10n="U" oldref="8">
+ <emph>aTime:</emph>Time to convert</paragraph>
+ <embed href="text/sbasic/shared/00000003.xhp#errorcode"/>
+ <embed href="text/sbasic/shared/00000003.xhp#err5"/>
+ <paragraph role="heading" id="hd_id3147243" xml-lang="en-US" level="2" l10n="U" oldref="9">Example:</paragraph>
+ <bascode>
+ <paragraph role="bascode" localize="false" xml-lang="en-US">Sub ExampleCDateFromUnoTime</paragraph>
+ <paragraph role="bascode" id="par_id3153126" xml-lang="en-US" l10n="U"> MsgBox(aDatabaseRow.getTime(3))</paragraph>
+ <paragraph role="bascode" id="par_id3153127" xml-lang="en-US" l10n="U"> MsgBox(CDateFromUnoTime(aTimeControl.Time))</paragraph>
+ <paragraph role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph>
+ </bascode>
+</body>
+</helpdocument>
diff --git a/source/text/sbasic/shared/03030115.xhp b/source/text/sbasic/shared/03030115.xhp
new file mode 100644
index 000000000..d7059ca94
--- /dev/null
+++ b/source/text/sbasic/shared/03030115.xhp
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+
+<!--
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 .
+ -->
+
+<helpdocument version="1.0">
+ <meta>
+ <topic id="textsbasicshared03030113xml" indexer="include" status="PUBLISH">
+ <title id="tit" xml-lang="en-US">CDateToUnoDate Function [Runtime]</title>
+ <filename>/text/sbasic/shared/03030113.xhp</filename>
+ </topic>
+ <history>
+ <created date="2013-09-10T16:09:00">Lionel Elie Mamane</created>
+ <lastedited date="2013-09-10T16:0*:00">Created as fork of 030113.xhp</lastedited>
+ </history>
+ </meta>
+ <body>
+ <section id="cdatetounodatetime">
+ <bookmark xml-lang="en-US" branch="index" id="bm_id3150620"><bookmark_value>CDateToUnoDateTime function</bookmark_value></bookmark>
+ <paragraph role="heading" id="hd_id3150620" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03030115.xhp" name="CDateToUnoDateTime Function [Runtime]">CDateToUnoDateTime Function [Runtime]</link></paragraph>
+ <paragraph role="paragraph" id="par_id3151097" xml-lang="en-US" l10n="U" oldref="2">Returns the time part of the date as a UNO com.sun.star.util.DateTime struct.</paragraph>
+ </section>
+ <paragraph role="heading" id="hd_id3159224" xml-lang="en-US" level="2" l10n="U" oldref="3">Syntax:</paragraph>
+ <bascode>
+ <paragraph role="bascode" id="par_id3149497" xml-lang="en-US" oldref="4">CDateToUnoDateTime(aDate)</paragraph>
+ </bascode>
+ <paragraph role="heading" id="hd_id3152347" xml-lang="en-US" level="2" l10n="U" oldref="5">Return value:</paragraph>
+ <paragraph role="paragraph" id="par_id3154422" xml-lang="en-US" l10n="U" oldref="6">com.sun.star.util.DateTime</paragraph>
+ <paragraph role="heading" id="hd_id3147303" xml-lang="en-US" level="2" l10n="U" oldref="7">Parameters:</paragraph>
+ <paragraph role="paragraph" id="par_id3145136" xml-lang="en-US" l10n="U" oldref="8">
+ <emph>aDate:</emph>Date value to convert</paragraph>
+ <embed href="text/sbasic/shared/00000003.xhp#errorcode"/>
+ <embed href="text/sbasic/shared/00000003.xhp#err5"/>
+ <paragraph role="heading" id="hd_id3147243" xml-lang="en-US" level="2" l10n="U" oldref="9">Example:</paragraph>
+ <bascode>
+ <paragraph role="bascode" localize="false" xml-lang="en-US">Sub ExampleCDateToUnoDateTime</paragraph>
+ <paragraph role="bascode" id="par_id3153126" xml-lang="en-US" l10n="U"> aDatabaseRow.updateTimestamp(3, CDateToUnoDateTime(Now))</paragraph>
+ <paragraph role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph>
+ </bascode>
+</body>
+</helpdocument>
diff --git a/source/text/sbasic/shared/03030116.xhp b/source/text/sbasic/shared/03030116.xhp
new file mode 100644
index 000000000..55c3323f3
--- /dev/null
+++ b/source/text/sbasic/shared/03030116.xhp
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+
+<!--
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 .
+ -->
+
+<helpdocument version="1.0">
+ <meta>
+ <topic id="textsbasicshared03030116xml" indexer="include" status="PUBLISH">
+ <title id="tit" xml-lang="en-US">CDateFromUnoDateTime Function [Runtime]</title>
+ <filename>/text/sbasic/shared/03030116.xhp</filename>
+ </topic>
+ <history>
+ <created date="2013-09-10T16:12:00">Lionel Elie Mamane</created>
+ <lastedited date="2013-09-10T16:12:00">Created as fork of 030114.xhp</lastedited>
+ </history>
+ </meta>
+ <body>
+ <section id="cdatefromunodatetime">
+ <bookmark xml-lang="en-US" branch="index" id="bm_id3150620"><bookmark_value>CDateFromUnoDateTime function</bookmark_value></bookmark>
+ <paragraph role="heading" id="hd_id3150620" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/03030116.xhp" name="CDateFromUnoDateTime Function [Runtime]">CDateFromUnoDateTime Function [Runtime]</link></paragraph>
+ <paragraph role="paragraph" id="par_id3151097" xml-lang="en-US" l10n="U" oldref="2">Converts a UNO com.sun.star.util.DateTime struct to a Date value.</paragraph>
+ </section>
+ <paragraph role="heading" id="hd_id3159224" xml-lang="en-US" level="2" l10n="U" oldref="3">Syntax:</paragraph>
+ <bascode>
+ <paragraph role="bascode" id="par_id3149497" xml-lang="en-US" oldref="4">CDateFromUnoDateTime(aDateTime)</paragraph>
+ </bascode>
+ <paragraph role="heading" id="hd_id3152347" xml-lang="en-US" level="2" l10n="U" oldref="5">Return value:</paragraph>
+ <paragraph role="paragraph" id="par_id3154422" xml-lang="en-US" l10n="U" oldref="6">Date</paragraph>
+ <paragraph role="heading" id="hd_id3147303" xml-lang="en-US" level="2" l10n="U" oldref="7">Parameters:</paragraph>
+ <paragraph role="paragraph" id="par_id3145136" xml-lang="en-US" l10n="U" oldref="8">
+ <emph>aDateTime:</emph>DateTime to convert</paragraph>
+ <embed href="text/sbasic/shared/00000003.xhp#errorcode"/>
+ <embed href="text/sbasic/shared/00000003.xhp#err5"/>
+ <paragraph role="heading" id="hd_id3147243" xml-lang="en-US" level="2" l10n="U" oldref="9">Example:</paragraph>
+ <bascode>
+ <paragraph role="bascode" localize="false" xml-lang="en-US">Sub ExampleCDateFromUnoDateTime</paragraph>
+ <paragraph role="bascode" id="par_id3153126" xml-lang="en-US" l10n="U"> MsgBox(aDatabaseRow.getTime(3))</paragraph>
+ <paragraph role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph>
+ </bascode>
+</body>
+</helpdocument>