import os, time
os.environ['TZ'] = 'US/Eastern'
time.tzset()
(function(){
var ConvertBase = function (num) {
return {
from : function (baseFrom) {
return {
to : function (baseTo) {
return parseInt(num, baseFrom).toString(baseTo);
}
};
}
};
};
ConvertBase.hex2bin = function (num) {
return ConvertBase(num).from(16).to(2);
};
this.ConvertBase = ConvertBase;
})(this);