Szerkesztés

Megosztás a következőn keresztül:


EntityFunctions.CreateTime Method

Definition

Invokes the canonical CreateTime function. For information about the canonical CreateTime function, see Date and Time Canonical Functions.

public:
 static Nullable<TimeSpan> CreateTime(Nullable<int> hour, Nullable<int> minute, Nullable<double> second);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "CreateTime")]
public static TimeSpan? CreateTime (int? hour, int? minute, double? second);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "CreateTime")>]
static member CreateTime : Nullable<int> * Nullable<int> * Nullable<double> -> Nullable<TimeSpan>
Public Shared Function CreateTime (hour As Nullable(Of Integer), minute As Nullable(Of Integer), second As Nullable(Of Double)) As Nullable(Of TimeSpan)

Parameters

hour
Nullable<Int32>

The hours part of the new time span.

minute
Nullable<Int32>

The minutes part of the new time span.

second
Nullable<Double>

The seconds part of the new time span. Note that you can specify fractions of a second with this parameter.

Returns

The new time span.

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