datetime extension to unix timestamp