Click or drag to resize

DateTimeFieldMathAddUsingField Method (DateTime, DateTimeFieldEnum, Int32)

Adds using field to indicate which datetime field to add to.

Namespace:  com.espertech.esper.compat.datetime
Assembly:  NEsper.Compat (in NEsper.Compat.dll) Version: 8.0.0.0
Syntax
C#
public static DateTime AddUsingField(
	this DateTime dateTime,
	DateTimeFieldEnum field,
	int amount
)

Parameters

dateTime
Type: SystemDateTime
The date time.
field
Type: com.espertech.esper.compat.datetimeDateTimeFieldEnum
The field.
amount
Type: SystemInt32
The amount.

Return Value

Type: DateTime

[Missing <returns> documentation for "M:com.espertech.esper.compat.datetime.DateTimeFieldMath.AddUsingField(System.DateTime,com.espertech.esper.compat.datetime.DateTimeFieldEnum,System.Int32)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DateTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also