changed unix to date conversion: improved with switch system