From: | Rien Broekstra <rien(at)cal018043(dot)student(dot)utwente(dot)nl> |
---|---|
To: | pgsql-php(at)postgresql(dot)org |
Subject: | strtotime() and postgresql date/time output |
Date: | 2001-01-27 11:39:42 |
Message-ID: | 3A72B37E.1000400@rename-it.student.utwente.nl |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
I have the following problem
I want to save timestamps in a database and use them in a php script.
According to the documentation, postgres's date/time output is possible
in 4 styles. My problem is that the php strtotime() function which I use
to get a timestamp instead of a date/time string does not understand any
of these date/time formats.
- Is it possible to manually define a datestyle so Postgresql returns a
date/time string which strtotime does understand?
- Is it possible to let Postgresql return just a timestamp instead of a
date/time string
- Is there another function in php which does understand standard ISO or
SQL style date/time strings and converts them to a timestamp?
thanks in advance
--
Rien Broekstra a.k.a Rienzilla
ICQ: 35629366 The Drunk Snipers: unreal.snt.utwente.nl
Mail: rien(at)rename-it(dot)student(dot)utwente(dot)nl
Vestingbar: www.vestingbar.nl
From | Date | Subject | |
---|---|---|---|
Next Message | Timothy_Maguire | 2001-01-29 15:14:47 | Re: strtotime() and postgresql date/time output |
Previous Message | Adam Lang | 2001-01-24 14:49:41 | Re: Re: query checking |