Click or drag to resize

MainIsDateReached Method

Will check if the specified date is reached

Namespace:  Omada.OE.UtilityCodeAssembly
Assembly:  Omada.OE.UtilityCodeAssembly (in Omada.OE.UtilityCodeAssembly.dll) Version: 15.0.0.0
Syntax
C#
public bool IsDateReached(
	CodeMethodInvokeContext context,
	DateTime date,
	bool dateOnly,
	int offsetYears,
	int offsetMonths,
	int offsetDays,
	int offsetHours,
	int offsetMinutes
)

Parameters

context
Type: Omada.OE.ModelCodeMethodInvokeContext
date
Type: SystemDateTime
dateOnly
Type: SystemBoolean
If true only date parts will be compared.
offsetYears
Type: SystemInt32
This number of years will be added to the current utc date, before the comparison. Can be negative.
offsetMonths
Type: SystemInt32
This number of months will be added to the current utc date, before the comparison. Can be negative.
offsetDays
Type: SystemInt32
This number of days will be added to the current utc date, before the comparison. Can be negative.
offsetHours
Type: SystemInt32
This number of hours will be added to the current utc date, before the comparison. Can be negative.
offsetMinutes
Type: SystemInt32
This number of minutes will be added to the current utc date, before the comparison. Can be negative.

Return Value

Type: Boolean
True if the date is reached, false otherwise
See Also