move unix timestamp conversion to separate class to adhere to srp