Returning A Class::Date Object

[prev] [thread] [next] [Date index for 2005/01/10]

From: Jay Hargreaves
Subject: Returning A Class::Date Object
Date: 21:10 on 10 Jan 2005
Hi y'all!

I have found Class::Date to be a very useful date formatting routine and 
as such I would like to return a Class::Date object (rather than the 
actual value) for any date fields in my database.

Presumably it might also be a good idea to set values in the database 
from a Class::Date object, since it has various parsing facilities 
available.

Can someone please tell me a good way to do this is? Do I use a trigger? 
Or do I override the column accessor somehow? Is there some way to do 
this automatically for any column which is of type date/datetime or will 
I have to specify them individually? Am I just talking rubbish? :)

Apologies if I have missed some part of the documentation that answers 
my question.

Cheers
Jay

        -- 
        a: 18 hart street, altrincham, wa14 1jw
m: 07899 872 306
e: jay@xxxxxxx.xxx

Returning A Class::Date Object
Jay Hargreaves 21:10 on 10 Jan 2005

Re: Returning A Class::Date Object
Matt S Trout 21:23 on 10 Jan 2005

Re: Returning A Class::Date Object
Jay Hargreaves 09:37 on 11 Jan 2005

Generated at 12:15 on 16 Jan 2005 by mariachi v0.52