|
Wednesday 03 March 2004 3:38:47 am
Comment14911
>> Then next question then is of course, how do I make Exponential store dates as >> unix format or convert the eZp format to unix format? I've got to come clean here, I'm not actually sure. I have a feeling that the code isn't provided with Exponential because there's so many date formats out there that you might need to convert. You would probably have to write an extension yourself so you could pipe it in your input e.g. something like: <input .... value={"23.12.2002"|MyDateExtension}>
>> And how DO Exponential store dates? There's a quarter of a bell ringing way back >> in my head that says something about integers I'm not sure what you mean, but they're just put into the database as an attribute (look in the database table ezcontentobject at published). I think it's got more to do with Unix time being a (probably disputably) good generic format because of it's portability than issues with integers and floats.
>> Anyway, when eZ created the datatype date, they probably have thought about >> how to display it in a human readable format I think the big problem with ezp date/time is that you need to be happy to "get your hands dirty" if you want to do anything more customised. On the other hand it really isn't very difficult, just sit down with a pen and paper and figure out the maths needed to get the desired result. Anyway I'm supposed to be working! Good luck! James
|