Re: comparing 2 timestamps
Re: comparing 2 timestamps
- Subject: Re: comparing 2 timestamps
- From: Hugi Thordarson <email@hidden>
- Date: Tue, 26 Oct 2004 13:56:36 +0000
Check out the methods before( NSTimestamp ), after( NSTimestamp ) and
compare( NSTimestamp ) in NSTimestamp. Any of these should be usable
for you.
Cheers,
Hugi
// Hugi Thordarson
// Development mgr.
// Vefsyn hf. - development, analysis, marketing
// http://www.vefsyn.com/
On 26.10.2004, at 13:44, Christian Telepski wrote:
Hi,
i am using timestamps in my apps quite a while with success.
There are lots of queries where i have to show all entries with a
timestamp before or after a timestamp.
This works fine if i filter the array using:
EOQualifier.filterArrayWithQualifier(someList,
EOQualifier.qualifierWithQualifierFormat ("timestamp>'"+thetime()+"'",
null));
but now i can not this kind of filtering.
I need to know if a particular timestamp is before or after an other
timestamp like:
if (apeople.timestamp2()>login1.timestamp())
but this does not work!
I have tried everything like comparing only the "toString's" but
nothing worked (operator < cannot be applied to...)
Please help!
Thanks in advance and best regards,
Christian Telepski _______________________________________________
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
_______________________________________________
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