pub unsafe static kODPolicyAttributeCurrentTimeOfDay: Option<&'static ODPolicyAttributeType>CFOpenDirectoryConstants only.Expand description
Policy attribute for the current time of day as a CFNumber.
Policy attribute for the current time of day as a CFNumber, in 24 hour time, i.e. the range is 0000 through 2359. Does not contain any date information.
This attribute is used in policies to compare the current time of day against another time of day. For example, to allow authentications between the hours of 8:00 AM and 5:00 PM, the policy string would be (kODPolicyAttributeEnableAtTimeOfDay is set to 0800 and kODPolicyAttributeExpiresAtTimeOfDay is 1700): [NSString stringWithFormat: “ % @
% @ and % @ < % “ , kODPolicyAttributeCurrentTimeOfDay, kODPolicyAttributeEnableAtTimeOfDay, kODPolicyAttributeCurrentTimeOfDay, kODPolicyAttributeExpiresAtTimeOfDay];
See also Apple’s documentation