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

Vincent Furia vfuria at gmail.com
Wed Dec 22 12:46:24 EST 2004


Propel functions that set date/time columns can commutate common
string formats into dates.  It's actually pretty cool how flexible it
is.

-Vinny


On Wed, 22 Dec 2004 10:46:57 -0600, Tony Bibbs <tony at tonybibbs.com> wrote:
> 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
> _______________________________________________
> geeklog-devel mailing list
> geeklog-devel at lists.geeklog.net
> http://lists.geeklog.net/listinfo/geeklog-devel
>



More information about the geeklog-devel mailing list