add optional unixtime support - based on a patch from feelinglucky