[geeklog-devel] [Fwd: Re: [propel] Multiple DBMS's and date/time]

Tony Bibbs tony at tonybibbs.com
Wed Dec 22 11:46:57 EST 2004


Blaine Lang wrote:

>Will we still not need Library functions then to compare dates in code as I 
>think you need to convert the YY-MM-DD HH:MM:SS Date/time format strings to 
>UNIX Timestamps for comparison in code - correct?
>
>Or did I read that you can request Propel to do this converstion when 
>retrieving the field?
>  
>
Right, when you pull a date out of a domain object you can do something 
like:

$myObj->getSomeDateMember('<date format');

I wouldn't assume, though, that you don't have to convert them to a 
date/time format when saving.  It'll take some testing.

--Tony



More information about the geeklog-devel mailing list