fixed to_seconds and improved usage