Click or drag to resize

DateTimeFieldMathSetFieldValue Method (DateTimeOffset, DateTimeFieldEnum, Int32, TimeZoneInfo)

Sets the field value.

Namespace:  com.espertech.esper.compat.datetime
Assembly:  NEsper.Compat (in NEsper.Compat.dll) Version: 8.0.0.0
Syntax
C#
public static DateTimeOffset SetFieldValue(
	this DateTimeOffset dateTime,
	DateTimeFieldEnum field,
	int value,
	TimeZoneInfo timeZone
)

Parameters

dateTime
Type: SystemDateTimeOffset
The date time.
field
Type: com.espertech.esper.compat.datetimeDateTimeFieldEnum
The field.
value
Type: SystemInt32
The value.
timeZone
Type: SystemTimeZoneInfo
The time zone.

Return Value

Type: DateTimeOffset

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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DateTimeOffset. 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).
Exceptions
ExceptionCondition
ArgumentExceptioninvalid datetime
See Also