Gary
If the getter API for UTCDateTime is deprecated I guess we can safely
assume the data type is also deprecated.
See:
/*
* GetUTCDateTime() *** DEPRECATED ***
*
* Deprecated:
* use CFTimeZoneGetSecondsFromGMT instead.
*
* Discussion:
* This function is no longer recommended. Please use
* CFTimeZoneGetSecondsFromGMT instead.
*
* Availability:
* Mac OS X: in version 10.0 and later in
CoreServices.framework but deprecated in 10.4
* CarbonLib: in CarbonLib 1.0.2 and later
* Non-Carbon CFM: in UTCUtils 1.0 and later
*/
extern OSStatus
GetUTCDateTime(
UTCDateTime * utcDateTime,
OptionBits options)
The utilities you mention are just bridges for us to use the
recommended APIs. I know Larry is always warning us how dangerous and
evil assumptions are but I guess my assumption is on the safe side. :)
JV
On 2007/01/18, at 00:29, Gary L. Wade wrote:
It looks like you're assuming that UTCDateTime was deprecated when
it was the
functions in UTCUtils.h that were deprecated. See DateTimeUtils.h for
non-deprecated functions that operate upon UTCDateTime.
Quoting João Varela <email@hidden>:
Hi Chris, Larry
I knew about converting UTCDateTime to CFAbsoluteTime; that was not
the problem, although I do appreciate the fact that you replied to my
question. What I asked was a way to get rid of UTCDateTime data type
completely by using a more modern API than FSGetCatalogInfo, but I
guess the "deafening silence" concerning my question means there is
none at the moment. :) Therefore I was planning to use the APIs that
Larry suggested, although it's good to know that you can do that
manually if you wish. :) I could file a bug but I guess Apple is
perfectly aware of that problem when they declared UTCDateTime
deprecated in Tiger. The "deafening silence" is quite understandable. :)
JV