Best approach to handling times
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.