Constructs a new access policy condition that compares the current time
(on the AWS servers) to the specified date.
Declaration Syntax
C# |
public static Condition NewCondition( ConditionFactory..::..DateComparisonType type, DateTime date )
Parameters
- type (ConditionFactory..::..DateComparisonType)
- The type of comparison to perform. For example, DateComparisonType.DateLessThan will cause this policy condition to evaluate to true if the current date is less than the date specified in the second argument.
- date (DateTime)
- The date to compare against.