CreateTime Method

EntityFunctions.CreateTime Method (Nullable<Int32>, Nullable<Int32>, Nullable<Double>)

.NET Framework (current version)
 

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

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

[EdmFunctionAttribute("Edm", "CreateTime")]
public static Nullable<TimeSpan> CreateTime(
	Nullable<int> hour,
	Nullable<int> minute,
	Nullable<double> second
)

Parameters

hour
Type: System.Nullable<Int32>

The hours part of the new time span.

minute
Type: System.Nullable<Int32>

The minutes part of the new time span.

second
Type: System.Nullable<Double>

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

Return Value

Type: System.Nullable<TimeSpan>

The new time span.

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.

.NET Framework
Available since 4.0
Return to top
Show:
© 2016 Microsoft