DbFunctions.GetTotalOffsetMinutes Method (Nullable<DateTimeOffset>)

 

When used as part of a LINQ to Entities query, this method invokes the canonical GetTotalOffsetMinutes EDM function to return the number of minutes that the given date/time is offset from UTC. This is generally between +780 and -780 (+ or - 13 hrs).

Namespace:   System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "dateTimeOffsetArgument")]
[DbFunctionAttribute("Edm", "GetTotalOffsetMinutes")]
public static Nullable<int> GetTotalOffsetMinutes(
	Nullable<DateTimeOffset> dateTimeOffsetArgument
)

Parameters

dateTimeOffsetArgument
Type: System.Nullable<DateTimeOffset>

The date/time value to use.

Return Value

Type: System.Nullable<Int32>

The offset of the input from UTC.

You cannot call this function directly. This function can only appear within a LINQ to Entities query. This function is translated to a corresponding function in the database.