summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre F <fpy@bger.ch>2024-03-13 14:56:24 +0100
committerOlivier Hallot <olivier.hallot@libreoffice.org>2024-03-14 20:45:01 +0100
commite48c06ba931d5da0371c2e9b64158aebfbbd9f49 (patch)
tree9babe7e2098efb9b324eb4ce0181a724499960c3
parente3d706d380c68fde45c71ca87213c0f1c1148455 (diff)
tdf#146902. add DatePart results
Change-Id: I718c788a596a11f40dbdaf60860daa8951ae709d Reviewed-on: https://gerrit.libreoffice.org/c/help/+/164746 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
-rw-r--r--source/text/sbasic/shared/03030130.xhp5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/text/sbasic/shared/03030130.xhp b/source/text/sbasic/shared/03030130.xhp
index 2ab5e915a0..184b042082 100644
--- a/source/text/sbasic/shared/03030130.xhp
+++ b/source/text/sbasic/shared/03030130.xhp
@@ -54,8 +54,9 @@
<embed href="text/sbasic/shared/00000003.xhp#functexample"/><bascode>
<paragraph id="par_idm1341577504" role="bascode" localize="false">Sub example_datepart</paragraph>
-<paragraph id="par_idm1341576272" role="bascode" localize="false"> MsgBox DatePart("ww", #12/31/2005#)</paragraph>
-<paragraph id="par_idm1347516272" role="bascode" localize="false"> MsgBox DatePart(date:=#1999-12-30#, interval:="q")</paragraph>
+<paragraph id="par_idm1341576002" role="bascode" localize="false"> MsgBox DatePart("ww", #01/02/2005#) ' displays 2 because weeks start on Sunday</paragraph>
+<paragraph id="par_idm1341576272" role="bascode" localize="false"> MsgBox DatePart("ww", #12/31/2005#) ' displays 53</paragraph>
+<paragraph id="par_idm1347516272" role="bascode" localize="false"> MsgBox DatePart(date:=#2005-12-30#, interval:="q") ' displays 4</paragraph>
<paragraph id="par_idm1341575024" role="bascode" localize="false">End Sub</paragraph>
</bascode>