Time conversion functions added.