Convert from and to unix timestamp