Name

UTC offset, timezone.utcoffset, kPMRPCTimeZoneUTCOffset, kPMObserveTimeZoneUTCOffset — UTC offset in seconds

Synopsis

integer timezone.utcoffset( );

Description

UTC offset in seconds

Seconds from UTC of the current system time.

Returns

UTC offset is an integer.

Observable

Changes to UTC offset can be observed, without polling, using timezone.utcoffset, kPMObserveTimeZoneUTCOffset.

Security

UTC offset can be requested by any authenticated client.

Unauthenticated clients are authorized using the uk.co.dssw.powermanager.timezone.utcoffset right. By default, any local process can request UTC offset.

Availablility

pmdctl

Examples

Example 131. C: timezone.utcoffset

CFMutableDictionaryRef myRequest = PMRequestCreate(kCFAllocatorDefault,kPMRPCTimeZoneUTCOffset);


Example 132. Objective-C: timezone.utcoffset

DSSWPMRequest* myRequest = [DSSWPMRequest requestWithRequest:kPMRPCTimeZoneUTCOffset];


Example 133. AppleScript: timezone.utcoffset

tell application "Power Manager Scripting"
    set myResult to UTC offset of Time Zone
end tell


Example 134. Shell: timezone.utcoffset

./pmctl timezone.utcoffset