2
0
mirror of https://github.com/Ride-The-Lightning/RTL synced 2024-10-31 09:20:27 +00:00
RTL/common.js
2019-01-01 11:26:51 -05:00

14 lines
237 B
JavaScript

var common = {};
common.lnd_server_url = '';
common.convertToBTC = (num) => {
return (num / 100000000).toFixed(6);
};
common.convertTimestampToDate = (num) => {
return new Date(+num*1000).toUTCString();
};
module.exports = common;