On Fri, Jan 04, 2002 at 05:56:13AM -0800, Max Bian wrote:
> It saves some bytes to transfer a UInt32 seconds. But that causes too
> much pain.  Why not just pass the DateTime struct with all fields set?

Sometimes you're working with a pre-existing format and you don't have
the luxury of changing it.  For example, people working with the .prc
format or the data formats of the built-in PIM apps.

> Or just year, month, day, hour, minute, seconds.  6 bytes do it all
> (use year like 01, 02, 99)!  Are you willing to trade 2 bytes with all
> these pain?

You're right -- if you're defining the format yourself and you feel like
doing some processing on both ends (which is somewhat contrary to the
original HotSync philosophy), unpacking it on the end where there's a
preexisting API function to do so (TimSecondsToDateTime) makes sense.

    John

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to