Re: how to handle dates alone
Re: how to handle dates alone
- Subject: Re: how to handle dates alone
- From: Chuck Hill <email@hidden>
- Date: Fri, 28 Jan 2011 17:12:42 -0800
On Jan 28, 2011, at 4:59 PM, Paul Hoadley wrote:
> On 29/01/2011, at 5:39 AM, Chuck Hill wrote:
>
>> On Jan 28, 2011, at 11:00 AM, Theodore Petrosky wrote:
>>
>>> You say 'these are Java'. yes, but how it relates to the backend. I have invoice dates in my database. it is just a date. no time.
>>>
>>> how can I set up Entity Modeler to not use a Timestamp. I tried the Joda Time stuff but it seems that there were problems so it was pulled.
>>>
>>> So I need to rephrase. How can I have a date column in my database and have an object in Webobjects that is date only and not care about times and timezones?
>>
>> You. Can. Not.
>
> You're scaring Ted, Chuck. Mention your assumptions: "Assuming you're not using a library that provides a genuine 1-day resolution date type, such as Joda Time."
I think that was pretty clear from the thread. I said that in my very first reply. "Standard Java does not support such subjective concepts. ... The only other solution that I am familiar with is Joda Time.
>> Java does not care what your database thinks. Java ONLY has a point in time. ONLY. JodaTime extends Java with some more, uh, relaxed attitudes towards dates.
>
> Stop scaring Ted, Chuck! There's nothing wrong with Joda's attitude. Sometimes a 1-day resolution date is precisely the type you need.
I don't think there is anything wrong with Joda's attitude. It is the attitude of the JDK and JDBC that has a problem. But it is what it is.
Chuck
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden