Created system time conversion functions