• 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
Best approach to handling times
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Best approach to handling times


  • Subject: Best approach to handling times
  • From: Ray Ackland <email@hidden>
  • Date: Thu, 11 Sep 2003 20:06:02 +1200

My current project has a class with a number of time fields. Along with the raw data, I am wanting to have some summary fields (eg total time).

I can think of a couple of alternatives for doing this -
 storing them as NSTimestamp and then converting to seconds before adding them (summing date/time stamps doesn't seem to make much sense);
 storing the originals as seconds and converting them to NSTimestamp for display. Hassle having to do all the extra coding though.


Can anybody suggest which is the best way of handling them? Would be nice to use the @sum functions, so the second option sounds more workable.

thanks,

Ray.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Best approach to handling times
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: i don't get it (dynamic table)
  • Next by Date: Using NSArray functions in WO
  • Previous by thread: Re: i don't get it (dynamic table)
  • Next by thread: Re: Best approach to handling times
  • Index(es):
    • Date
    • Thread