2var createDate = function(y, m, d, h, mi, s, ms) {
3 var date = new Date(Date.UTC(y, m, d, h, mi, s, ms));
4 if (y >= 0 && y < 100) {
5 date.setUTCFullYear(y);
10var createLocalDate = function(y, m, d, h, mi, s, ms) {
11 var date = new Date(y, m, d, h, mi, s, ms);
12 if (y >= 0 && y < 100) {
18export function now() {
22export function isValid(date) {
23 return !isNaN(date.getTime());
26export function toInstantImpl(just) {
27 return function(nothing) {
28 return function(date) {
29 var t = date.getTime();
30 return isNaN(t) ? nothing : just(t);
35export function fromInstant(instant) {
36 return new Date(instant);
39export function jsdate(parts) {
51export function jsdateLocal(parts) {
53 return createLocalDate(
65export function dateMethod(method, date) {
66 return date[method]();
69export function dateMethodEff(method, date) {
71 return date[method]();
75export function parse(dateString) {
77 return new Date(dateString);
81export function fromTime(time) {
82 return new Date(time);
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