[Dbix-class] getting the mysql current date into a variable with DBIx::Class

Matt S Trout dbix-class at trout.me.uk
Sat Nov 3 20:55:22 GMT 2007


On Sat, Nov 03, 2007 at 10:00:51PM +0530, jagdish eashwar wrote:
> Hi,
> I've googled all over, but I haven't been able to find a way of getting the
> mysql current_date into a scalar using DBIx::Class. Please show me how it
> can be done.

Why aren't you just using DateTime->now ?

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/



More information about the DBIx-Class mailing list