36 using namespace adobe::afl;
55 static FILETIME ATimeToFILETIME(ATime time);
62 static ATime FILETIMEToATime(FILETIME& fileTime);
69 static CFAbsoluteTime ATimeToAbsoluteTime(ATime time);
76 static ATime AbsoluteTimeToATime(CFAbsoluteTime time);
88 static bool GetUTCDateTime(int32* year, int32* month, int32* day, int32* hour, int32* minute, int32* second);
100 static std::time_t SetUTCDateTime(int32 year, int32 month, int32 day, int32 hour, int32 minute, int32 second);
150 bool operator==(
const IDTime& rhs)
const;
158 bool operator!=(
const IDTime& rhs)
const;
166 bool operator<(
const IDTime& rhs)
const;
174 bool operator>(
const IDTime& rhs)
const;
185 void SetTime(ATime time);
191 ATime GetTime()
const;
203 bool SetTime(int32 year, int32 month, int32 day, int32 hour, int32 minute, int32 second);
217 bool GetTime(int32* year, int32* month, int32* day, int32* hour, int32* minute, int32* second, int32* dayOfWeek = nil)
const;
226 bool DateToString(
WideString& str,
bool bShortform)
const;
242 bool IsValid()
const;
257 enum DateFormatStyle {
258 kDateFormatShortStyle = 0,
259 kDateFormatMediumStyle = 1,
260 kDateFormatLongStyle = 2,
261 kDateFormatFullStyle = 3
271 bool MacDateToString(
WideString& str,
const DateFormatStyle& dateFormatStyle)
const;
275 uint64 XferInt64(
IPMStream *s, uint64 &value)
const;
282 extern const IDTime kInvalidIDTime;