Re: Data type definition for NSTimestamp as integer column
Re: Data type definition for NSTimestamp as integer column
- Subject: Re: Data type definition for NSTimestamp as integer column
- From: Anjo Krank <email@hidden>
- Date: Thu, 5 Jul 2007 05:22:49 +0200
Sigh.
Being down that road before (with MySQL for reasons to sinister to
mention): stop with that crap before it's too late! You will really,
really regret it once you come up with problems with daylight saving
time and similar stuff.
You have been warned...
Cheers, Anjo
Am 04.07.2007 um 17:50 schrieb Q:
That was my fall back option, but I managed to get it to work the
way I wanted by subclassing NSTimestamp and using it as a custom
data type.
On 04/07/2007, at 10:57 PM, Mike Schrag wrote:
You could always just set your data type to a long and write cover
methods on your EO that take NSTimestamp and just them them
into .getTime() and new NSTimstamp(long) -- equiv to
System.currentTimeMillis, basically (/1000 = unix time). With a
little eogenerator magic and a common userInfo attribute, you
could probably have that autogenerating also.
ms
On Jul 4, 2007, at 8:51 AM, Kieran Kelleher wrote:
It is possible...
On Jul 4, 2007, at 2:47 AM, Q wrote:
Can anyone tell me if it is possible to define an NSTimestamp
eomodel property to be represented in the database as an integer
column rather than a date/time column, ideally in seconds ( as a
unixtime value).
--
Seeya...Q
Quinton Dolan - email@hidden
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mdimension.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
--
Seeya...Q
Quinton Dolan - email@hidden
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40logicunited.com
This email sent to email@hidden
_______________________________________________
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