kODPolicyAttributeEnableAtTimeOfDay

Static kODPolicyAttributeEnableAtTimeOfDay 

Source
pub unsafe static kODPolicyAttributeEnableAtTimeOfDay: Option<&'static ODPolicyAttributeType>
Available on crate feature CFOpenDirectoryConstants only.
Expand description

Policy attribute for enable at a specific time of day.

Policy attribute for enable at a specific time of day. The time is specified in 24-hour time, with a range of 0000 through 2359. This attribute can be used as a key in the policy parameter dictionary, with a CFNumber value, and in the policy strings.

Typically used in authentication policies to control specific times of when when authentications are allowed. For example, to enable authentications between the hours of 8:00 AM and 5:00 PM, the policy would be: @ { kODPolicyKeyIdentifier : “ school hours“, kODPolicyKeyParameters : @ { kODPolicyAttributeEnableAtTimeOfDay : @ 800, kODPolicyAttributeExpiresAtTimeOfDay : @ 1700 }, kODPolicyKeyContent : [NSString stringWithFormat: “ % @

% @ and % @ < % “ , kODPolicyAttributeCurrentTimeOfDay, kODPolicyAttributeEnableAtTimeOfDay, kODPolicyAttributeCurrentTimeOfDay, kODPolicyAttributeExpiresAtTimeOfDay]};

See also Apple’s documentation