mirror of
https://github.com/Ride-The-Lightning/RTL
synced 2024-10-31 09:20:27 +00:00
14 lines
237 B
JavaScript
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;
|