Skip to content

Commit

Permalink
Rename isoUtcDateTime mask to iso as in Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lauriro committed Mar 21, 2015
1 parent fd496c6 commit 796b9bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -80,7 +80,7 @@

Date.masks = {
"default": "DDD MMM DD YYYY hh:mm:ss",
"isoUtcDateTime": "UTC:YYYY-MM-DD'T'hh:mm:ss'Z'"
"iso": "UTC:YYYY-MM-DD'T'hh:mm:ss'Z'"
}
Date.names = "JanFebMarAprMayJunJulAugSepOctNovDecJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecemberSunMonTueWedThuFriSatSundayMondayTuesdayWednesdayThursdayFridaySaturday".match(/.[a-z]+/g)

Expand Down
8 changes: 4 additions & 4 deletions tests/run.js
Expand Up @@ -9,10 +9,10 @@ var d3 = new Date(1234567890000);
require("testman").
describe ("Date.format").

it ( "should format isoUtcDateTime" ).
equal( d1.format("isoUtcDateTime"), "2010-06-16T13:45:55Z" ).
equal( d2.format("isoUtcDateTime"), "2001-09-09T01:46:40Z" ).
equal( d3.format("isoUtcDateTime"), "2009-02-13T23:31:30Z" ).
it ( "should format iso DateTime" ).
equal( d1.format("iso"), "2010-06-16T13:45:55Z" ).
equal( d2.format("iso"), "2001-09-09T01:46:40Z" ).
equal( d3.format("iso"), "2009-02-13T23:31:30Z" ).

it ( "should format timestamp" ).
equal( d1.format("u"), "1276695955" ).
Expand Down

0 comments on commit 796b9bb

Please sign in to comment.