public Method

TimeZone.local_to_utc(time, dst=true)

Adjust the given time to the simultaneous time in UTC. Returns a Time.utc() instance.

Source Code

# File active_support/values/time_zone.rb, line 210
def local_to_utc(time, dst=true)
  tzinfo.local_to_utc(time, dst)
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.