Skip to content

Commit

Permalink
Merge pull request #15 from ironwallaby/master
Browse files Browse the repository at this point in the history
Replace var with let/const, remove dead code, replace bizarre variable names with self-documenting ones
  • Loading branch information
ryanseys committed Mar 17, 2016
2 parents 0a253d4 + 8c3c4be commit bb5f5e0
Show file tree
Hide file tree
Showing 5 changed files with 375 additions and 437 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: node_js

node_js:
- "0.10"
- "4.4"
- "5.8"
20 changes: 9 additions & 11 deletions lib/julian.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
(function() {
"use strict";
'use strict'

function fromDate(date) {
return date.getTime() / 86400000 + 2440587.5;
}
function fromDate (date) {
return date.getTime() / 86400000 + 2440587.5
}

function toDate(julian) {
return new Date((julian - 2440587.5) * 86400000);
}
function toDate (julian) {
return new Date((julian - 2440587.5) * 86400000)
}

exports.fromDate = fromDate;
exports.toDate = toDate;
})();
exports.fromDate = fromDate
exports.toDate = toDate
Loading

0 comments on commit bb5f5e0

Please sign in to comment.