changing full time to unix timestamp