[development] no date / time types in schema API

David Timothy Strauss david at fourkitchens.com
Wed Jul 2 15:29:06 UTC 2008


No, gmmktime() is a better choice. 

----- "Ashraf Amayreh" wrote: 
> Maybe what you want is strtotime? 
> 
> http://www.php.net/manual/en/function.strtotime.php 
> 
> 
On Wed, Jul 2, 2008 at 1:59 PM, augustin (beginner) < drupal.beginner at wechange.org > wrote: 
> 


On Wednesday 02 July 2008 18:36:15 Damien wrote: 
> > A solution based on timestamps is much more elegant: timestamps need no 
> > (database-specific) parsing whatsoever (both on reading and writing to the 
> > database), they play nice with arithmetic (and thus do not need any helper 
> > functions), and are consistent with the implementation of most application, 
> > including Drupal. 
> 
> How do you use a timestamp when you need the date 18 Aug 1908 on a date 
> field??? 
> 
> Augustin. 
> 
> 
> 
> 

> -- 
> Ashraf Amayreh 
> http://blogs.aamayreh.org 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20080702/fe6af445/attachment.htm 


More information about the development mailing list