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

 

When used as part of a LINQ to Entities query, this method invokes the canonical CreateTime EDM function to create a new TimeSpan object.

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

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "hour")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "second")]
[DbFunctionAttribute("Edm", "CreateTime")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "minute")]
public static Nullable<TimeSpan> CreateTime(
	Nullable<int> hour,
	Nullable<int> minute,
	Nullable<double> second
)

Parameters

hour
Type: System.Nullable<Int32>

The hours.

minute
Type: System.Nullable<Int32>

The minutes.

second
Type: System.Nullable<Double>

The seconds, including fractional parts of the seconds if desired.

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.