Ruby | Time gmtime function
Time#gmtime() is a Time class method which modifies the receiver and converts time to UTC (GMT). Syntax: Time.gmtime() Parameter: Time values Return: converts time to UTC (GMT). Example #1 : # Ruby code for Time.gmtime() method # declaring time a = Time.new(2019) # declaring time b = Time.new(2019,