[Zorba-coders] [Merge] lp:~zorba-coders/zorba/update3.0_datetime-module into lp:zorba
The proposal to merge lp:~zorba-coders/zorba/update3.0_datetime-module into lp:zorba has been updated. Status: Needs review => Merged For more details, see: https://code.launchpad.net/~zorba-coders/zorba/update3.0_datetime-module/+merge/172685 -- https://code.launchpad.net/~zorba-coders/zorba/update3.0_datetime-module/+merge/172685 Your team Zorba Coders is subscribed to branch lp:zorba. -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp
[Zorba-coders] [Merge] lp:~zorba-coders/zorba/update3.0_datetime-module into lp:zorba
Validation queue succeeded - proposal merged! -- https://code.launchpad.net/~zorba-coders/zorba/update3.0_datetime-module/+merge/172685 Your team Zorba Coders is subscribed to branch lp:zorba. -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp
[Zorba-coders] [Merge] lp:~zorba-coders/zorba/update3.0_datetime-module into lp:zorba
Validation queue starting for the following merge proposals: https://code.launchpad.net/~zorba-coders/zorba/update3.0_datetime-module/+merge/172685 Progress dashboard at http://jenkins.lambda.nu/view/ValidationQueue -- https://code.launchpad.net/~zorba-coders/zorba/update3.0_datetime-module/+merge/172685 Your team Zorba Coders is subscribed to branch lp:zorba. -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp
[Zorba-coders] [Merge] lp:~zorba-coders/zorba/update3.0_datetime-module into lp:zorba
Validation queue result for https://code.launchpad.net/~zorba-coders/zorba/update3.0_datetime-module/+merge/172685 Stage "TestZorbaUbuntu" failed. 4 tests failed (8573 total tests run). Check test results at http://jenkins.lambda.nu/job/TestZorbaUbuntu/361/testReport/ to view the results. -- https://code.launchpad.net/~zorba-coders/zorba/update3.0_datetime-module/+merge/172685 Your team Zorba Coders is subscribed to branch lp:zorba. -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp
[Zorba-coders] [Merge] lp:~zorba-coders/zorba/update3.0_datetime-module into lp:zorba
Validation queue starting for the following merge proposals: https://code.launchpad.net/~zorba-coders/zorba/update3.0_datetime-module/+merge/172685 Progress dashboard at http://jenkins.lambda.nu/view/ValidationQueue -- https://code.launchpad.net/~zorba-coders/zorba/update3.0_datetime-module/+merge/172685 Your team Zorba Coders is subscribed to branch lp:zorba. -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp
[Zorba-coders] [Merge] lp:~zorba-coders/zorba/update3.0_datetime-module into lp:zorba
Validation queue result for https://code.launchpad.net/~zorba-coders/zorba/update3.0_datetime-module/+merge/172685 Stage "ZorbaVQ" failed. Check console output at http://jenkins.lambda.nu/job/ZorbaVQ/451/console to view the results. -- https://code.launchpad.net/~zorba-coders/zorba/update3.0_datetime-module/+merge/172685 Your team Zorba Coders is subscribed to branch lp:zorba. -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp
[Zorba-coders] [Merge] lp:~zorba-coders/zorba/update3.0_datetime-module into lp:zorba
Validation queue starting for the following merge proposals: https://code.launchpad.net/~zorba-coders/zorba/update3.0_datetime-module/+merge/172685 Progress dashboard at http://jenkins.lambda.nu/view/ValidationQueue -- https://code.launchpad.net/~zorba-coders/zorba/update3.0_datetime-module/+merge/172685 Your team Zorba Coders is subscribed to branch lp:zorba. -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp
Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/update3.0_datetime-module into lp:zorba
Review: Approve -- https://code.launchpad.net/~zorba-coders/zorba/update3.0_datetime-module/+merge/172685 Your team Zorba Coders is subscribed to branch lp:zorba. -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp
Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/update3.0_datetime-module into lp:zorba
Review: Approve -- https://code.launchpad.net/~zorba-coders/zorba/update3.0_datetime-module/+merge/172685 Your team Zorba Coders is subscribed to branch lp:zorba. -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp
Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/update3.0_datetime-module into lp:zorba
Review: Needs Fixing Should use Paul's new mechanism to put the error codes into the module's own namespace rather than zerr:. Also don't use codes in the name. For example, use dt:INVALID_SPECIFICATION rather than zerr:ZDTP0001_INVALID_SPECIFICATION. -- https://code.launchpad.net/~zorba-coders/zorba/update3.0_datetime-module/+merge/172685 Your team Zorba Coders is subscribed to branch lp:zorba. -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp
Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/update3.0_datetime-module into lp:zorba
updated -- https://code.launchpad.net/~zorba-coders/zorba/update3.0_datetime-module/+merge/172685 Your team Zorba Coders is subscribed to branch lp:zorba. -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp
Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/update3.0_datetime-module into lp:zorba
Review: Needs Fixing Error codes need updating. Rest of the changes look good. -- https://code.launchpad.net/~zorba-coders/zorba/update3.0_datetime-module/+merge/172685 Your team Zorba Coders is subscribed to branch lp:zorba. -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp
[Zorba-coders] [Merge] lp:~zorba-coders/zorba/update3.0_datetime-module into lp:zorba
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 + : This module provides functions to retrieve the current dateTime and to + : parse dates and times. + : + : In contrast to the current-dateTime functions specified in : http://www.w3.org/TR/xpath-functions-30/";>XQuery Functions and : Operators, 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 - : http://pubs.opengroup.org/onlinepubs/007904975/functions/strptime.html";>strptime. - : 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. + : + : Dates and times are parsed according to the format given by + : http://pubs.opengroup.org/onlinepubs/007904975/functions/strptime.html";>strptime. + : 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. : (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.) + : For a dateTime, the parsing requirements of both date and time must be met. + : + : When 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 '.'. + : The {sep}, {country}, and {encoding} are optional; + : {encoding} is always ignored. + : Examples include: de, en-US, fr_CA, ru_RU.UTF-8. : : @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 date when - : the function is invoked