Created
May 1, 2016 17:54
-
-
Save blakeberg/c574bd7fe42a4236442526aa7161dc96 to your computer and use it in GitHub Desktop.
CalculateTimeFromBlocks.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var f = 1150000; //fork at block number | |
var b = 1139113; //block number | |
var t = 17; //avg time between blocks | |
var d = new Date('2016-03-12 16:38:45'); //datetime for b | |
d.setSeconds(d.getSeconds() + (f-b)*t); //datetime to fork | |
console.log(d); | |
//Mon Mar 14 2016 20:03:24 GMT+0100 (Mitteleuropäische Zeit) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment