Permalink
Browse files

--------------------

2008-03-24 [geoffrey.mcgill]
1.  Fixed bug where a single digit minute or second value would not parse correctly. 
	See forum post http://tinyurl.com/3d8b57.
	
	Made the following revision:

	// Old
	g.hms = _.cache(_.sequence([g.H, g.mm, g.ss], g.timePartDelimiter));
		
	// New
	g.hms = _.cache(_.sequence([g.H, g.m, g.s], g.timePartDelimiter));
	
2.  Added a few tests to /trunk/test/time/ relating to above fix.

--------------------
  • Loading branch information...
1 parent 8b80364 commit c1c8a197a7f7c5fd788b9e033bd59225fdcc1fe1 geoff@coolite.com committed Mar 25, 2008
Showing with 374 additions and 334 deletions.
  1. +25 −9 CHANGELOG.txt
  2. +14 −2 TODO.txt
  3. +1 −1 build/core.js
  4. +2 −2 build/date-af-ZA.js
  5. +2 −2 build/date-ar-AE.js
  6. +2 −2 build/date-ar-BH.js
  7. +2 −2 build/date-ar-DZ.js
  8. +2 −2 build/date-ar-EG.js
  9. +2 −2 build/date-ar-IQ.js
  10. +2 −2 build/date-ar-JO.js
  11. +2 −2 build/date-ar-KW.js
  12. +2 −2 build/date-ar-LB.js
  13. +2 −2 build/date-ar-LY.js
  14. +2 −2 build/date-ar-MA.js
  15. +2 −2 build/date-ar-OM.js
  16. +2 −2 build/date-ar-QA.js
  17. +2 −2 build/date-ar-SA.js
  18. +2 −2 build/date-ar-SY.js
  19. +2 −2 build/date-ar-TN.js
  20. +2 −2 build/date-ar-YE.js
  21. +2 −2 build/date-az-Cyrl-AZ.js
  22. +2 −2 build/date-az-Latn-AZ.js
  23. +2 −2 build/date-be-BY.js
  24. +2 −2 build/date-bg-BG.js
  25. +2 −2 build/date-bs-Latn-BA.js
  26. +2 −2 build/date-ca-ES.js
  27. +2 −2 build/date-cs-CZ.js
  28. +2 −2 build/date-cy-GB.js
  29. +2 −2 build/date-da-DK.js
  30. +2 −2 build/date-de-AT.js
  31. +2 −2 build/date-de-CH.js
  32. +2 −2 build/date-de-DE.js
  33. +2 −2 build/date-de-LI.js
  34. +2 −2 build/date-de-LU.js
  35. +2 −2 build/date-dv-MV.js
  36. +2 −2 build/date-el-GR.js
  37. +2 −2 build/date-en-029.js
  38. +2 −2 build/date-en-AU.js
  39. +2 −2 build/date-en-BZ.js
  40. +2 −2 build/date-en-CA.js
  41. +2 −2 build/date-en-GB.js
  42. +2 −2 build/date-en-IE.js
  43. +2 −2 build/date-en-JM.js
  44. +2 −2 build/date-en-NZ.js
  45. +2 −2 build/date-en-PH.js
  46. +2 −2 build/date-en-TT.js
  47. +2 −2 build/date-en-US.js
  48. +2 −2 build/date-en-ZA.js
  49. +2 −2 build/date-en-ZW.js
  50. +2 −2 build/date-es-AR.js
  51. +2 −2 build/date-es-BO.js
  52. +2 −2 build/date-es-CL.js
  53. +2 −2 build/date-es-CO.js
  54. +2 −2 build/date-es-CR.js
  55. +2 −2 build/date-es-DO.js
  56. +2 −2 build/date-es-EC.js
  57. +2 −2 build/date-es-ES.js
  58. +2 −2 build/date-es-GT.js
  59. +2 −2 build/date-es-HN.js
  60. +2 −2 build/date-es-MX.js
  61. +2 −2 build/date-es-NI.js
  62. +2 −2 build/date-es-PA.js
  63. +2 −2 build/date-es-PE.js
  64. +2 −2 build/date-es-PR.js
  65. +2 −2 build/date-es-PY.js
  66. +2 −2 build/date-es-SV.js
  67. +2 −2 build/date-es-UY.js
  68. +2 −2 build/date-es-VE.js
  69. +2 −2 build/date-et-EE.js
  70. +2 −2 build/date-eu-ES.js
  71. +2 −2 build/date-fa-IR.js
  72. +2 −2 build/date-fi-FI.js
  73. +2 −2 build/date-fo-FO.js
  74. +2 −2 build/date-fr-BE.js
  75. +2 −2 build/date-fr-CA.js
  76. +2 −2 build/date-fr-CH.js
  77. +2 −2 build/date-fr-FR.js
  78. +2 −2 build/date-fr-LU.js
  79. +2 −2 build/date-fr-MC.js
  80. +2 −2 build/date-gl-ES.js
  81. +2 −2 build/date-gu-IN.js
  82. +2 −2 build/date-he-IL.js
  83. +2 −2 build/date-hi-IN.js
  84. +2 −2 build/date-hr-BA.js
  85. +2 −2 build/date-hr-HR.js
  86. +2 −2 build/date-hu-HU.js
  87. +2 −2 build/date-hy-AM.js
  88. +2 −2 build/date-id-ID.js
  89. +2 −2 build/date-is-IS.js
  90. +2 −2 build/date-it-CH.js
  91. +2 −2 build/date-it-IT.js
  92. +2 −2 build/date-ja-JP.js
  93. +2 −2 build/date-ka-GE.js
  94. +2 −2 build/date-kk-KZ.js
  95. +2 −2 build/date-kn-IN.js
  96. +2 −2 build/date-ko-KR.js
  97. +2 −2 build/date-kok-IN.js
  98. +2 −2 build/date-ky-KG.js
  99. +2 −2 build/date-lt-LT.js
  100. +2 −2 build/date-lv-LV.js
  101. +2 −2 build/date-mi-NZ.js
  102. +2 −2 build/date-mk-MK.js
  103. +2 −2 build/date-mn-MN.js
  104. +2 −2 build/date-mr-IN.js
  105. +2 −2 build/date-ms-BN.js
  106. +2 −2 build/date-ms-MY.js
  107. +2 −2 build/date-mt-MT.js
  108. +2 −2 build/date-nb-NO.js
  109. +2 −2 build/date-nl-BE.js
  110. +2 −2 build/date-nl-NL.js
  111. +2 −2 build/date-nn-NO.js
  112. +2 −2 build/date-ns-ZA.js
  113. +2 −2 build/date-pa-IN.js
  114. +2 −2 build/date-pl-PL.js
  115. +2 −2 build/date-pt-BR.js
  116. +2 −2 build/date-pt-PT.js
  117. +2 −2 build/date-quz-BO.js
  118. +2 −2 build/date-quz-EC.js
  119. +2 −2 build/date-quz-PE.js
  120. +2 −2 build/date-ro-RO.js
  121. +2 −2 build/date-ru-RU.js
  122. +2 −2 build/date-sa-IN.js
  123. +2 −2 build/date-se-FI.js
  124. +2 −2 build/date-se-NO.js
  125. +2 −2 build/date-se-SE.js
  126. +2 −2 build/date-sk-SK.js
  127. +2 −2 build/date-sl-SI.js
  128. +2 −2 build/date-sma-NO.js
  129. +2 −2 build/date-sma-SE.js
  130. +2 −2 build/date-smj-NO.js
  131. +2 −2 build/date-smj-SE.js
  132. +2 −2 build/date-smn-FI.js
  133. +2 −2 build/date-sms-FI.js
  134. +2 −2 build/date-sq-AL.js
  135. +2 −2 build/date-sr-Cyrl-BA.js
  136. +2 −2 build/date-sr-Cyrl-CS.js
  137. +2 −2 build/date-sr-Latn-BA.js
  138. +2 −2 build/date-sr-Latn-CS.js
  139. +2 −2 build/date-sv-FI.js
  140. +2 −2 build/date-sv-SE.js
  141. +2 −2 build/date-sw-KE.js
  142. +2 −2 build/date-syr-SY.js
  143. +2 −2 build/date-ta-IN.js
  144. +2 −2 build/date-te-IN.js
  145. +2 −2 build/date-th-TH.js
  146. +2 −2 build/date-tn-ZA.js
  147. +2 −2 build/date-tr-TR.js
  148. +2 −2 build/date-tt-RU.js
  149. +2 −2 build/date-uk-UA.js
  150. +2 −2 build/date-ur-PK.js
  151. +2 −2 build/date-uz-Cyrl-UZ.js
  152. +2 −2 build/date-uz-Latn-UZ.js
  153. +2 −2 build/date-vi-VN.js
  154. +2 −2 build/date-xh-ZA.js
  155. +2 −2 build/date-zh-CN.js
  156. +2 −2 build/date-zh-HK.js
  157. +2 −2 build/date-zh-MO.js
  158. +2 −2 build/date-zh-SG.js
  159. +2 −2 build/date-zh-TW.js
  160. +2 −2 build/date-zu-ZA.js
  161. +2 −2 build/date.js
  162. +2 −2 build/parser.js
  163. +1 −1 build/sugarpak.js
  164. +1 −1 build/time.js
  165. +1 −1 src/parser.js
  166. +13 −1 test/time/index.js
View
@@ -1,13 +1,29 @@
CHANGE LOG
--------------------
-2008-3-18 [geoffrey.mcgill]
+2008-03-24 [geoffrey.mcgill]
+1. Fixed bug where a single digit minute or second value would not parse correctly.
+ See forum post http://tinyurl.com/3d8b57.
+
+ Made the following revision:
+
+ // Old
+ g.hms = _.cache(_.sequence([g.H, g.mm, g.ss], g.timePartDelimiter));
+
+ // New
+ g.hms = _.cache(_.sequence([g.H, g.m, g.s], g.timePartDelimiter));
+
+2. Added a few tests to /trunk/test/time/ relating to above fix.
+
+--------------------
+
+2008-03-18 [geoffrey.mcgill]
1. Made small revision to .addDays() which should avoid addition/subtraction issues when
spanning over a Daylight Saving Time (Summer Time) change.
--------------------
-2008-3-3 [geoffrey.mcgill]
+2008-03-03 [geoffrey.mcgill]
1. Fixed .toString() bug where .toString would not return four characters if the year was less than 1000.
// Old
@@ -26,7 +42,7 @@ CHANGE LOG
--------------------
-2008-2-26 [geoffrey.mcgill]
+2008-02-26 [geoffrey.mcgill]
1. Dan Yoder fixed bug with timeContext pattern where if a date included "april" or "august", the parser thought the 'a' was the beginning of a time part (as in am/pm).
"added a quick negative lookahead to the regexp to make sure the 'a' isn't followed by a 'u' or a 'p'."
@@ -41,19 +57,19 @@ CHANGE LOG
--------------------
-2008-2-21 [geoffrey.mcgill]
+2008-02-21 [geoffrey.mcgill]
1. Fixed bug in .parseExact where if the month was January ('0') the Parser.finishExact function was resetting to the current month.
2. Added several new tests to /trunk/test/parseExact/.
--------------------
-2008-2-18 [geoffrey.mcgill]
+2008-02-18 [geoffrey.mcgill]
1. Added .toISOString() back to sugarpak.js. Still investigating to figure out why/how this function was removed at Build 130-131.
2. Fixed small bug in .is().weekday() where .weekday() was not returning 'this' if the .is() flag had not been set.
--------------------
-2008-2-7 [geoffrey.mcgill]
+2008-02-07 [geoffrey.mcgill]
1. Fixed bug in parser.js which prevented some strings from parsing when the 'day' of the date string was greater than the last day of the current month.
Example
@@ -65,7 +81,7 @@ CHANGE LOG
--------------------
-2008-2-5 [geoffrey.mcgill]
+2008-02-05 [geoffrey.mcgill]
1. Added .is().weekday() function to sugarpak.js.
The .weekday() function determines if the current date is a weekday.
The function must be preceded by the .is() function.
@@ -76,13 +92,13 @@ CHANGE LOG
--------------------
-2008-2-4 [geoffrey.mcgill]
+2008-02-04 [geoffrey.mcgill]
1. Added .getOrdinal() tests to the new sugarpak (/trunk/test/sugarpak/) test package.
See http://www.datejs.com/test/sugarpak/index.html
--------------------
-2008-1-2 [geoffrey.mcgill]
+2008-01-02 [geoffrey.mcgill]
1. Added .toISOString() to sugarpak.js. Returns ISO 8601 formatted string of date.
2. Changed .toJSONString() to return string value wrapped in double-quotes ("") as per
JSON.org spec.
View
@@ -21,7 +21,13 @@ CUTTING ROOM FLOOR
The following items were at one time tested for inclusion into the library, but were cut.
They are documented here for reference.
-1. Date.prototype.getQuarter()
+1. Removed <static> Date.now() because of potential collision with the future ECMA 4 spec, which will include a Date.now() function.
+
+2. Removed <static> Date.getDayName(dayOfWeek). Please use Date.CultureInfo.dayNames[dayOfWeek].
+
+3. Removed <static> Date.getMonthName(month). Please use Date.CultureInfo.monthNames[month].
+
+2. Date.prototype.getQuarter()
/**
* Get the Year Quarter number for the currect date instance.
@@ -31,7 +37,13 @@ They are documented here for reference.
return Math.ceil((this.getMonth() + 1)/3);
};
-2. Date.isDate()
+3. Date.isDate(). Please use "instanceof".
+
+ Example
+
+ var d1 = null;
+ d1 = Date.today();
+ console.log(d1 instanceof Date);
/**
* Determines if an object is a Date object.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit c1c8a19

Please sign in to comment.