Added to_relative function for Time class.