Mac OS 9
UTCUtils.h File Reference

Interface for UTC to Local Time conversion and 64 Bit Clock routines. More...

#include <MacTypes.h>
#include <MacErrors.h>

Go to the source code of this file.

Data Structures

struct  UTCDateTime
 
struct  LocalDateTime
 

Typedefs

typedef struct UTCDateTime UTCDateTime
 
typedef UTCDateTimeUTCDateTimePtr
 
typedef UTCDateTimePtrUTCDateTimeHandle
 
typedef struct LocalDateTime LocalDateTime
 
typedef LocalDateTimeLocalDateTimePtr
 
typedef LocalDateTimePtrLocalDateTimeHandle
 

Enumerations

enum  { kUTCDefaultOptions = 0 }
 

Functions

OSStatus ConvertLocalTimeToUTC (UInt32 localSeconds, UInt32 *utcSeconds)
 
OSStatus ConvertUTCToLocalTime (UInt32 utcSeconds, UInt32 *localSeconds)
 
OSStatus ConvertUTCToLocalDateTime (const UTCDateTime *utcDateTime, LocalDateTime *localDateTime)
 
OSStatus ConvertLocalToUTCDateTime (const LocalDateTime *localDateTime, UTCDateTime *utcDateTime)
 
OSStatus GetUTCDateTime (UTCDateTime *utcDateTime, OptionBits options)
 
OSStatus SetUTCDateTime (const UTCDateTime *utcDateTime, OptionBits options)
 
OSStatus GetLocalDateTime (LocalDateTime *localDateTime, OptionBits options)
 
OSStatus SetLocalDateTime (const LocalDateTime *localDateTime, OptionBits options)
 

Detailed Description

Interface for UTC to Local Time conversion and 64 Bit Clock routines.

Introduced In: Mac OS 9
Avaliable From: Universal Interfaces 3.4.1
Copyright: © 1999-2001 by Apple Computer, Inc., all rights reserved.

For bug reports, consult the following page on the World Wide Web:

http://developer.apple.com/bugreporter/

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Options for Set & Get DateTime Routines

Function Documentation

◆ ConvertLocalTimeToUTC()

OSStatus ConvertLocalTimeToUTC ( UInt32  localSeconds,
UInt32 *  utcSeconds 
)

Classic 32 bit clock conversion routines ConvertLocalTimeToUTC()

Non-Carbon CFM: in UTCUtils 1.0 and later
Carbon Lib: in CarbonLib 1.0.2 and later
Mac OS X: in version 10.0 and later

◆ ConvertLocalToUTCDateTime()

OSStatus ConvertLocalToUTCDateTime ( const LocalDateTime localDateTime,
UTCDateTime utcDateTime 
)

ConvertLocalToUTCDateTime()

Non-Carbon CFM: in UTCUtils 1.0 and later
Carbon Lib: in CarbonLib 1.0.2 and later
Mac OS X: in version 10.0 and later

◆ ConvertUTCToLocalDateTime()

OSStatus ConvertUTCToLocalDateTime ( const UTCDateTime utcDateTime,
LocalDateTime localDateTime 
)

64 bit clock conversion routines ConvertUTCToLocalDateTime()

Non-Carbon CFM: in UTCUtils 1.0 and later
Carbon Lib: in CarbonLib 1.0.2 and later
Mac OS X: in version 10.0 and later

◆ ConvertUTCToLocalTime()

OSStatus ConvertUTCToLocalTime ( UInt32  utcSeconds,
UInt32 *  localSeconds 
)

ConvertUTCToLocalTime()

Non-Carbon CFM: in UTCUtils 1.0 and later
Carbon Lib: in CarbonLib 1.0.2 and later
Mac OS X: in version 10.0 and later

◆ GetLocalDateTime()

OSStatus GetLocalDateTime ( LocalDateTime localDateTime,
OptionBits  options 
)

GetLocalDateTime()

Non-Carbon CFM: in UTCUtils 1.0 and later
Carbon Lib: in CarbonLib 1.0.2 and later
Mac OS X: in version 10.0 and later

◆ GetUTCDateTime()

OSStatus GetUTCDateTime ( UTCDateTime utcDateTime,
OptionBits  options 
)

Getter and Setter Clock routines using 64 Bit values GetUTCDateTime()

Non-Carbon CFM: in UTCUtils 1.0 and later
Carbon Lib: in CarbonLib 1.0.2 and later
Mac OS X: in version 10.0 and later

◆ SetLocalDateTime()

OSStatus SetLocalDateTime ( const LocalDateTime localDateTime,
OptionBits  options 
)

SetLocalDateTime()

Non-Carbon CFM: in UTCUtils 1.0 and later
Carbon Lib: in CarbonLib 1.0.2 and later
Mac OS X: in version 10.0 and later

◆ SetUTCDateTime()

OSStatus SetUTCDateTime ( const UTCDateTime utcDateTime,
OptionBits  options 
)

SetUTCDateTime()

Non-Carbon CFM: in UTCUtils 1.0 and later
Carbon Lib: in CarbonLib 1.0.2 and later
Mac OS X: in version 10.0 and later