Re: time zones

2005-04-28 Thread Monty Harris
> How does one cope with time zones? For example, if I want to timestamp a > record it will timestanp using the local time of my server. I thought that, > e.g if my server was in New York and my customer_location was the UK, I can > just add 5 hours to the time and it would be correct. > While th

Re: time zones

2005-04-28 Thread Gleb Paharenko
Hello. The good support of timezones is on TODO list. See: http://dev.mysql.com/doc/mysql/en/todo-future.html "Monty Harris" <[EMAIL PROTECTED]> wrote: > How does one cope with time zones? For example, if I want to timestamp a > record it will timestanp using the local time of my

Re: Time zones and grouping

2003-10-14 Thread Mikhail Entaltsev
Hi, If I understand you correctly the this query should help you: select date_format(date_add(DateTime, interval 7 hour), "%Y%m%d") as Date, count(1) from Table1 group by Date order by Date Best regards, Mikhail. - Original Message - From: "Graeme B. Davis" <[EMAIL PROTECTED]> To:

Re: time zones?

2002-04-14 Thread DL Neil
Hi everyone, Apologies, I'm coming very late into this conversation, but perhaps I can disperse some of the confusion... Rob's original question: * I'm curious about how MySQL deals with time zones. Our machines are located in the GMT time zone, and recently rolled over to British Standard Ti

Re: time zones?

2002-04-12 Thread Keith C. Ivey
I wrote: > Using UNIX_TIMESTAMP() on a > timestamp column will produce an epoch time (in seconds), but it > won't necessarily be the right epoch time, because of daylight saving > time (summer time) and possibly data that has moved from one time > zone to another. Actually the documentation

Re: time zones?

2002-04-12 Thread Keith C. Ivey
On 12 Apr 2002, at 14:01, Lance Uyehara wrote: > > On 12 Apr 2002, at 13:05, Lance Uyehara wrote: > > > UNIX_TIMESTAMP > > > > Maybe I'm missing something, but I don't think that's the answer. > > How does UNIX_TIMESTAMP() know whether the timestamp is in summer > > time (or even what time zone i

Re: time zones?

2002-04-12 Thread Lance Uyehara
> On 12 Apr 2002, at 13:05, Lance Uyehara wrote: > > > [EMAIL PROTECTED] wrote: > > > > It might be > > > worthwile to have some way of retreiving a timestamp as an epoch value in > > > addition to other fifty ways you can currently retrieve it. (If there > > > already is a way, I'd be thrilled to

Re: time zones?

2002-04-12 Thread Keith C. Ivey
On 12 Apr 2002, at 13:05, Lance Uyehara wrote: > > [EMAIL PROTECTED] wrote: > > It might be > > worthwile to have some way of retreiving a timestamp as an epoch value in > > addition to other fifty ways you can currently retrieve it. (If there > > already is a way, I'd be thrilled to hear about i

Re: time zones?

2002-04-12 Thread Russell E Glaue
We use a Network Time Server to keep the MySQL server in the right time. -RG On Fri, 12 Apr 2002, John Klein wrote: > > [EMAIL PROTECTED] wrote: > > > > As I understand it, the mysql TIMESTAMP type represents the time in your > > local timezone (the one your computer is using). > > > > This make

Re: time zones?

2002-04-12 Thread Lance Uyehara
> [EMAIL PROTECTED] wrote: > > > > As I understand it, the mysql TIMESTAMP type represents the time in your > > local timezone (the one your computer is using). > > > > This makes it problematic to use in timezones that have a summer/daylight > > savings time. All of the date arithmetic functions

Re: time zones?

2002-04-12 Thread John Klein
[EMAIL PROTECTED] wrote: > > As I understand it, the mysql TIMESTAMP type represents the time in your > local timezone (the one your computer is using). > > This makes it problematic to use in timezones that have a summer/daylight > savings time. All of the date arithmetic functions will yield

Re: time zones?

2002-04-12 Thread Erik Rantapaa
As I understand it, the mysql TIMESTAMP type represents the time in your local timezone (the one your computer is using). This makes it problematic to use in timezones that have a summer/daylight savings time. All of the date arithmetic functions will yield inaccurate results if one of the date

Re: time zones?

2002-04-12 Thread Bradley Brown
I would like to second this notion if I may. I was up until midnight (EST) last night trying to come up with the very same answers. I found no answers from either the online mailing list searches nor from the O'Reilly Mysql book... nor from the DBI book. This also makes it difficult when porting s