allow initializing with unix timestamp as integer