Adding time conversion utilities

These work for me, but they may break with other NS instances