pub unsafe static kODPolicyAttributeCurrentDayOfWeek: Option<&'static ODPolicyAttributeType>CFOpenDirectoryConstants only.Expand description
Policy attribute for the current day of the week, as a CFNumber.
Policy attribute for the current day of the week, as a CFNumber. Specified in units appropriate for the local calendar. The range is 1 through 7, with 1 representing the first day of the week in the local calendar, and 7 representing the last day of the week.
This attribute is used in policies to compare the current day of the week against another day of the week. For example, to enable authentications on Monday through Friday, the policy would be (kODPolicyAttributeEnableOnDayOfWeek is set to the number for Monday and kODPolicyAttributeExpiresOnDayOfWeek is set to the number for Friday): [NSString stringWithFormat: “ % @
% @ and % @ < % “ , kODPolicyAttributeCurrentDayOfWeek, kODPolicyAttributeEnableOnDayOfWeek, kODPolicyAttributeCurrentDayOfWeek, kODPolicyAttributeExpiresOnDayOfWeek];
See also Apple’s documentation