Create timespec conversion functions