Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2.3.8) is shown here.
utc()
public
Adjusts DateTime to UTC by adding its offset
value; offset is set to 0
Example:
DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24))
DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)).utc
# File activesupport/lib/active_support/core_ext/date_time/calculations.rb, line 102
def utc
new_offset(0)
end