Skip to content
Browse files

Add Date.iso8601() to mapreduce/js/iso8601.js.

  • Loading branch information...
1 parent 70b0e37 commit 2af9c93ee9a8096ebb20b9037bc04afcd6cc5eb7 @aphyr aphyr committed
Showing with 6 additions and 0 deletions.
  1. +6 −0 mapreduce/js/iso8601.js
View
6 mapreduce/js/iso8601.js
@@ -27,6 +27,12 @@ Date.prototype.setISO8601 = function (string) {
this.setTime(Number(time));
}
+Date.iso8601 = function (string) {
+ d = new Date;
+ d.setISO8601(string);
+ return d;
+}
+
Date.prototype.iso8601 = function (format, offset) {
/* accepted values for the format [1-6]:
1 Year:

0 comments on commit 2af9c93

Please sign in to comment.
Something went wrong with that request. Please try again.