• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: comparing 2 timestamps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: comparing 2 timestamps "solved"
      • From: Christian Telepski <email@hidden>
References: 
 >comparing 2 timestamps (From: Christian Telepski <email@hidden>)

  • Prev by Date: comparing 2 timestamps
  • Next by Date: Re: comparing 2 timestamps "solved"
  • Previous by thread: comparing 2 timestamps
  • Next by thread: Re: comparing 2 timestamps "solved"
  • Index(es):
    • Date
    • Thread