Add Time#atZone

“inZone” would be more idiomatic English, if that matters. You’re “in” an
area, like a country or a time zone; you’re “at” a particular place, like
home or work or 10 Downing St.

–Don Womick

···

-----Original Message-----
From: martindemello@yahoo.com [mailto:martindemello@yahoo.com]
Sent: Friday, September 27, 2002 12:43 PM
To: ruby-talk@ruby-lang.org
Subject: RCR: Add Time#atZone

Analogous to Time#gmtime, but sets the time to zone z, where z is
specified as GMT +/- some number of hours (or possibly using the
standard “named” timezones). e.g.
t = Time.now.atZone(+3) or t = Time.now.atZone(“CST”)

martin

Hi –

···

On Sat, 28 Sep 2002, Womick, Don wrote:

“inZone” would be more idiomatic English, if that matters. You’re “in” an
area, like a country or a time zone; you’re “at” a particular place, like
home or work or 10 Downing St.

in_zone would be more idiomatic Ruby :slight_smile:

David


David Alan Black | Register for RubyConf 2002!
home: dblack@candle.superlink.net | November 1-3
work: blackdav@shu.edu | Seattle, WA, USA
Web: http://pirate.shu.edu/~blackdav | http://www.rubyconf.com

dblack@candle.superlink.net wrote in message news:Pine.LNX.4.44.0209271719010.30393-100000@candle.superlink.net

Hi –

“inZone” would be more idiomatic English, if that matters. You’re “in” an
area, like a country or a time zone; you’re “at” a particular place, like
home or work or 10 Downing St.

true

in_zone would be more idiomatic Ruby :slight_smile:

and also true :slight_smile:

martin

···

On Sat, 28 Sep 2002, Womick, Don wrote: