EntityFunctions.CreateDateTimeOffset Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Invokes the canonical CreateDateTimeOffset
function. For information about the canonical CreateDateTimeOffset
function, see Date and Time Canonical Functions.
public:
static Nullable<DateTimeOffset> CreateDateTimeOffset(Nullable<int> year, Nullable<int> month, Nullable<int> day, Nullable<int> hour, Nullable<int> minute, Nullable<double> second, Nullable<int> timeZoneOffset);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "CreateDateTimeOffset")]
public static DateTimeOffset? CreateDateTimeOffset (int? year, int? month, int? day, int? hour, int? minute, double? second, int? timeZoneOffset);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "CreateDateTimeOffset")>]
static member CreateDateTimeOffset : Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<double> * Nullable<int> -> Nullable<DateTimeOffset>
Public Shared Function CreateDateTimeOffset (year As Nullable(Of Integer), month As Nullable(Of Integer), day As Nullable(Of Integer), hour As Nullable(Of Integer), minute As Nullable(Of Integer), second As Nullable(Of Double), timeZoneOffset As Nullable(Of Integer)) As Nullable(Of DateTimeOffset)
Parameters
The seconds part of the new date. Note that you can specify fractions of a second with this parameter.
Returns
The new date.
- 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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om