szimek
2009-Jul-24 14:10 UTC
Does anyone know where can I get US zip codes with time zones?
Hi, we ask user for his zip code and currently we also ask for this time zone (only US). It''s a bit redundant, so I''d like to figure out user''s time zone based on his zip code. The problem is that all services I''ve seen that provide such data, provide only time offset and daylight savings flag for each zip code. I''d rather have Rails time zone or anything that I can easily map to it :) Or maybe having offset and daylight saving time flag is enough to do the mapping myself? Thanks
straightflush-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2009-Jul-24 17:35 UTC
Re: Does anyone know where can I get US zip codes with time zones?
http://www.zipcodedownload.com/Products/Category/USA/ On Fri, Jul 24, 2009 at 10:10 AM, szimek<szimek-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi, > > we ask user for his zip code and currently we also ask for this time > zone (only US). It''s a bit redundant, so I''d like to figure out user''s > time zone based on his zip code. > > The problem is that all services I''ve seen that provide such data, > provide only time offset and daylight savings flag for each zip code. > I''d rather have Rails time zone or anything that I can easily map to > it :) > > Or maybe having offset and daylight saving time flag is enough to do > the mapping myself? > > Thanks > > >
Philip Hallstrom
2009-Jul-24 18:21 UTC
Re: Does anyone know where can I get US zip codes with time zones?
> we ask user for his zip code and currently we also ask for this time > zone (only US). It''s a bit redundant, so I''d like to figure out user''s > time zone based on his zip code. > > The problem is that all services I''ve seen that provide such data, > provide only time offset and daylight savings flag for each zip code. > I''d rather have Rails time zone or anything that I can easily map to > it :) > > Or maybe having offset and daylight saving time flag is enough to do > the mapping myself?Should be. I''ve used http://www.zip-codes.com/zip-code-database.asp on several projects. zip_code | city | state | time_zone | day_light_savings ----------+---------+-------+-----------+------------------- 98501 | OLYMPIA | WA | 8 | Y -philip
szimek
2009-Jul-25 20:11 UTC
Re: Does anyone know where can I get US zip codes with time zones?
Is it possible that 2 regions in US at any time of year have the same time offset, both are in daylight savings time, but actually have different time zones? If not, then it should be easy to map this data to Rails time zones. On 24 Lip, 20:21, Philip Hallstrom <phi...-LSG90OXdqQE@public.gmane.org> wrote:> > we ask user for his zip code and currently we also ask for this time > > zone (only US). It''s a bit redundant, so I''d like to figure out user''s > > time zone based on his zip code. > > > The problem is that all services I''ve seen that provide such data, > > provide only time offset and daylight savings flag for each zip code. > > I''d rather have Rails time zone or anything that I can easily map to > > it :) > > > Or maybe having offset and daylight saving time flag is enough to do > > the mapping myself? > > Should be. > > I''ve usedhttp://www.zip-codes.com/zip-code-database.aspon several > projects. > > zip_code | city | state | time_zone | day_light_savings > ----------+---------+-------+-----------+------------------- > 98501 | OLYMPIA | WA | 8 | Y > > -philip
Norm
2009-Aug-08 05:30 UTC
Re: Does anyone know where can I get US zip codes with time zones?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> szimek wrote: <blockquote cite="mid:a3b6f792-0b34-40c6-a1fd-b205fc989fef-pYzOafEmNb/cxYtZIV0bP1YGCWtFR9XvxddQ6fo/n9Y@public.gmane.orgom" type="cite"> <pre wrap="">Is it possible that 2 regions in US at any time of year have the same time offset, both are in daylight savings time, but actually have different time zones? If not, then it should be easy to map this data to Rails time zones. </pre> </blockquote> No it is not possible. But there are places in the US (like Arizona) that do not observe DST so that Arizona has the same offset as California etc. in the summer but in the winter it does not.<br> <br> --~--~---------~--~----~------------~-------~--~----~<br> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. <br> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <br> To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <br> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en<br> -~----------~----~----~----~------~----~------~--~---<br> </body> </html> <br>