Juan Zacarias has proposed merging
lp:~zorba-coders/zorba/update3.0_datetime-module into lp:zorba.
Commit message:
updated datetime module to the Zorba3.0 namespace.
Requested reviews:
Chris Hillery (ceejatec)
For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/update3.0_datetime-module/+merge/172685
Updated datetime module to the Zorba3.0 namespace.
--
https://code.launchpad.net/~zorba-coders/zorba/update3.0_datetime-module/+merge/172685
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'modules/CMakeLists.txt'
--- modules/CMakeLists.txt 2013-06-28 02:33:07 +
+++ modules/CMakeLists.txt 2013-07-02 22:00:50 +
@@ -16,6 +16,7 @@
ADD_SUBDIRECTORY(org)
ADD_SUBDIRECTORY(functx)
ADD_SUBDIRECTORY(xqxq)
+ADD_SUBDIRECTORY(dateTime)
ADD_SUBDIRECTORY(w3c)
ADD_SUBDIRECTORY(full-text)
=== modified file 'modules/com/zorba-xquery/www/modules/CMakeLists.txt'
--- modules/com/zorba-xquery/www/modules/CMakeLists.txt 2013-06-28 02:33:07 +
+++ modules/com/zorba-xquery/www/modules/CMakeLists.txt 2013-07-02 22:00:50 +
@@ -52,8 +52,6 @@
MARK_AS_ADVANCED(ZORBA_HAVE_CURL)
DECLARE_ZORBA_SCHEMA(FILE xqdoc.xsd URI http://www.xqdoc.org/1.0;)
-DECLARE_ZORBA_MODULE(FILE datetime.xq VERSION 2.0
- URI http://www.zorba-xquery.com/modules/datetime;)
DECLARE_ZORBA_MODULE(FILE fetch.xq VERSION 2.0
URI http://www.zorba-xquery.com/modules/fetch;)
DECLARE_ZORBA_MODULE(FILE math.xq VERSION 2.0
=== added directory 'modules/dateTime'
=== added file 'modules/dateTime/CMakeLists.txt'
--- modules/dateTime/CMakeLists.txt 1970-01-01 00:00:00 +
+++ modules/dateTime/CMakeLists.txt 2013-07-02 22:00:50 +
@@ -0,0 +1,2 @@
+DECLARE_ZORBA_MODULE(FILE datetime.xq VERSION 2.0
+ URI http://zorba.io/modules/datetime;)
\ No newline at end of file
=== renamed file 'modules/com/zorba-xquery/www/modules/datetime.xq' = 'modules/dateTime/datetime.xq'
--- modules/com/zorba-xquery/www/modules/datetime.xq 2013-06-25 03:55:20 +
+++ modules/dateTime/datetime.xq 2013-07-02 22:00:50 +
@@ -17,34 +17,34 @@
:)
(:~
- : This module provides functions to retrieve the current dateTime and to
- : parse dates and times.
- :
- : In contrast to the current-dateTime functions specified in
+ : pThis module provides functions to retrieve the current dateTime and to
+ : parse dates and times./p
+ : p/
+ : pIn contrast to the current-dateTime functions specified in
: a href=http://www.w3.org/TR/xpath-functions-30/;XQuery Functions and
: Operators/a, the functions in this module are nondeterministic, that is,
: they do not return the current dateTime from the dynamic context, but return
- : the actual value.
- :
- : Dates and times are parsed according to the format given by
- : a href=http://pubs.opengroup.org/onlinepubs/007904975/functions/strptime.html;strptime/a.
- : However, date and time values must be complete.
- : For a date, the year and either month and day or day of the year must have
- : been parsed.
- : For a time, the hour must have been parsed.
+ : the actual value./p
+ : p/
+ : pDates and times are parsed according to the format given by
+ : a href=http://pubs.opengroup.org/onlinepubs/007904975/functions/strptime.html;strptime/a./p
+ : pHowever, date and time values must be complete./p
+ : pFor a date, the year and either month and day or day of the year must have
+ : been parsed./p
+ : pFor a time, the hour must have been parsed.
: (If either the minute, second, or timezone has not been parsed, they default
- : to 0.)
- : For a dateTime, the parsing requirements of both date and time must be met.
- :
- : When a locale is given,
+ : to 0.)/p
+ : pFor a dateTime, the parsing requirements of both date and time must be met./p
+ : p/
+ : pWhen a locale is given,
: it must be of the form {lang}[{sep}{country}[{encoding}]] where
: {lang} is an ISO 639-1 2-letter or 639-2 3-letter language code,
: {sep} is either '-' or '_',
: {country} is an ISO 3166-1 2-letter country code,
- : and {encoding} is any string that begins with a '.'.
- : The {sep}, {country}, and {encoding} are optional;
- : {encoding} is always ignored.
- : Examples include: de, en-US, fr_CA, ru_RU.UTF-8.
+ : and {encoding} is any string that begins with a '.'./p
+ : pThe {sep}, {country}, and {encoding} are optional;
+ : {encoding} is always ignored./p
+ : pExamples include: de, en-US, fr_CA, ru_RU.UTF-8./p
:
: @author Matthias Brantner
: @author Paul J. Lucas
@@ -52,7 +52,7 @@
: @project Zorba/XQuery Data Model/Atomic/Datetime
:
:)
-module namespace datetime = http://www.zorba-xquery.com/modules/datetime;;
+module namespace datetime = http://zorba.io/modules/datetime;;
declare namespace an = http://www.zorba-xquery.com/annotations;;
declare namespace zerr = http://zorba.io/modules/zorba-errors;;
@@ -61,9 +61,9 @@
declare option ver:module-version 2.0;
(:~
- : Gets the current date value in Universal time.
- : Note that this function is not stable: it returns the value of the