![]() |
MachineLocation |
Header: OSUtils.h |
struct MachineLocation { Fract latitude; Fract longitude; BigEndianLong delta; };
The locations latitude, in fractions of a great circle. For example, Copenhagen, Denmark is at 55.43 degrees north latitude. When writing the latitude to extended parameter RAM with the WriteLocation procedure, you must convert this value to a Fract data type. (For example, a Fract value of 1.0 equals 90 degrees; 1.0 equals 90 degrees; and 2.0 equals 180 degrees.) For more information on the Fract data type, see Mathematical and Logical Utilities.
The locations longitude, in fractions of a great circle. For example, Copenhagen, Denmark is at 12.34 degrees east longitude. When writing the longitude to extended parameter RAM with the WriteLocation procedure, you must convert this value to a Fract data type. (For example, a Fract value of 1.0 equals 90 degrees; 1.0 equals 90 degrees; and 2.0 equals 180 degrees.)
A signed byte value representing the hour offset for daylight saving time. This field is a 1-byte value contained in a long word. It should be preserved when writing gmtDelta.
The geographic location and time-zone information of a Macintosh computer are stored in extended parameter RAM. The MachineLocation data type defines the format for the geographic location record.
The ReadLocation and WriteLocation procedures use the geographic location record to read and store the geographic location and time zone information in extended parameter RAM. If the geographic location record has never been set, all fields contain 0.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)