Share via


DbFunctions.GetTotalOffsetMinutes(Nullable<DateTimeOffset>) Method

Definition

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).

[System.Data.Entity.DbFunction("Edm", "GetTotalOffsetMinutes")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="dateTimeOffsetArgument")]
public static Nullable<int> GetTotalOffsetMinutes (Nullable<DateTimeOffset> dateTimeOffsetArgument);
static member GetTotalOffsetMinutes : Nullable<DateTimeOffset> -> Nullable<int>
Public Shared Function GetTotalOffsetMinutes (dateTimeOffsetArgument As Nullable(Of DateTimeOffset)) As Nullable(Of Integer)

Parameters

dateTimeOffsetArgument
Nullable<DateTimeOffset>

The date/time value to use.

Returns

The offset of the input from UTC.

Attributes

Remarks

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.

Applies to