Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


Share this Page URL
Help

Chapter 7. Working with Times and Dates > Obtaining the Time Zone

Feedback: 0 Comments on this Section

7.13. Obtaining the Time Zone

The accessor zone in the Time class returns a String representation of the time zone name.

z1 = Time.gm(2000,11,10,22,5,0).zone     # "GMT-6:00"
z2 = Time.local(2000,11,10,22,5,0).zone  # "GMT-6:00"


You are currently reading a free preview of this book.

                                                                                                         

Sign up for a
Safari Library subscription
to access Rough Cuts.

  

Subscribe Now