InfraRuby Vision delivers solutions for mobile and web applications.
You can try InfraRuby live in your browser!
Try the InfraRuby statically typed Ruby compiler live in your browser. Try our examples or write your own code.
Follow @InfraRuby on Twitter for news and updates.

InfraRuby gems: tzinfo-ir

tzinfo-ir is a substitute gem for InfraRuby to provide timezone functions.

To install tzinfo-ir, type in a privileged shell:

gem install tzinfo-ir

You can use tzinfo-ir to perform timezone conversions, like this:

require "tzinfo-ir"

z = TZInfo::Timezone.get("NZ")
t = z.now
puts t
t = z.local_to_utc(t)
puts t
t = z.utc_to_local(t)
puts t

Try the InfraRuby statically typed Ruby compiler live in your browser. You can use InfraRuby for your own projects with our free download!

Follow @InfraRuby on Twitter
Copyright © 2011-2017 InfraRuby Vision Limited