mysql> create table t(d datetime);
Query OK, 0 rows affected (0.08 sec)

mysql> insert into t(d) values(str_to_date('Thu May 21 03:15:28 +0000 2009', '%a
 %b %e %H:%i:%s +0000 %Y'));
Query OK, 1 row affected (0.00 sec)

mysql> select * from t;
+---------------------+
| d                   |
+---------------------+
| 2009-05-21 03:15:28 |
+---------------------+

most of us have contacts in europe who dont use EDT,CDT,MDT or PDT so 
i *was hoping* to get confirmation on CONVERT_TZ(date,from_tz,to_tz) works?

Thanks,
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Fri, 22 May 2009 07:14:58 -0600
> From: john.l.me...@gmail.com
> To: janek.bogu...@studylink.com
> CC: mysql@lists.mysql.com
> Subject: Re: Date Time
> 
> Janek Bogucki wrote:
> > Hi John,
> >
> > http://dev.mysql.com/doc/refman/5.1/en/date-and-time-types.html includes
> > some information about acceptable literal forms for dates and times.
> >
> > 'Thu May 21 03:15:28 +0000 2009' is not an acceptable literal form but
> > this is how to parse it APART from the time zone component. I could not
> > see from the documentation how to specify the time zone component so the
> > format below IGNORES the time zone.
> >
> > mysql> create table t(d datetime);
> >
> > mysql> insert into t(d) values(str_to_date('Thu May 21 03:15:28 +0000 
> > 2009', '%a %b %e %H:%i:%s +0000 %Y'));
> >
> >   
> Thanks.  That'll work.
> 
> -- 
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe:    http://lists.mysql.com/mysql?unsub=mgai...@hotmail.com
> 

_________________________________________________________________
Hotmail® has ever-growing storage! Don’t worry about storage limits.
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage1_052009

Reply via email to