2module Native.Color where
11 function dateNow() { return new window.Date; }
12 function readDate(str) {
13 var d = new window.Date(Elm.JavaScript.castStringToJSString(str));
14 if (isNaN(d.getTime())) return Elm.Maybe.Nothing;
15 return Elm.Maybe.Just(d);
18 var dayTable = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
19 var monthTable = ["Jan", "Feb", "Mar", "Apr", "May", "Jun",
20 "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
24 year : function(d) { return d.getFullYear(); },
25 month : function(d) { return { ctor:monthTable[d.getMonth()] }; },
26 day : function(d) { return d.getDate(); },
27 hour : function(d) { return d.getHours(); },
28 minute : function(d) { return d.getMinutes(); },
29 second : function(d) { return d.getSeconds(); },
30 toTime : function(d) { return d.getTime(); }
31 dayOfWeek : function(d) { return { ctor:dayTable[d.getDay()] }; },
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list