/*
	Copyright (c) 2004-2016, The JS Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

//>>built
define("dojo/date/stamp",["../_base/lang","../_base/array"],function(m,l){var g={};m.setObject("dojo.date.stamp",g);g.fromISOString=function(e,d){g._isoRegExp||(g._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/);var a=g._isoRegExp.exec(e),f=null;if(a){a.shift();a[1]&&a[1]--;a[6]&&(a[6]*=1E3);d&&(d=new Date(d),l.forEach(l.map("FullYear Month Date Hours Minutes Seconds Milliseconds".split(" "),function(h){return d["get"+h]()}),
function(h,k){a[k]=a[k]||h}));f=new Date(a[0]||1970,a[1]||0,a[2]||1,a[3]||0,a[4]||0,a[5]||0,a[6]||0);100>a[0]&&f.setFullYear(a[0]||1970);var b=0,c=a[7]&&a[7].charAt(0);"Z"!=c&&(b=60*(a[8]||0)+(Number(a[9])||0),"-"!=c&&(b*=-1));c&&(b-=f.getTimezoneOffset());b&&f.setTime(f.getTime()+6E4*b)}return f};g.toISOString=function(e,d){var a=function(k){return 10>k?"0"+k:k};d=d||{};var f=[],b=d.zulu?"getUTC":"get",c="";"time"!=d.selector&&(c=e[b+"FullYear"](),c=["0000".substr((c+"").length)+c,a(e[b+"Month"]()+
1),a(e[b+"Date"]())].join("-"));f.push(c);if("date"!=d.selector){c=[a(e[b+"Hours"]()),a(e[b+"Minutes"]()),a(e[b+"Seconds"]())].join(":");b=e[b+"Milliseconds"]();d.milliseconds&&(c+="."+(100>b?"0":"")+a(b));if(d.zulu)c+="Z";else if("time"!=d.selector){b=e.getTimezoneOffset();var h=Math.abs(b);c+=(0<b?"-":"+")+a(Math.floor(h/60))+":"+a(h%60)}f.push(c)}return f.join("T")};return g});