Edit

Share via


EntityFunctions.AddSeconds Method

Definition

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

Overloads

AddSeconds(Nullable<TimeSpan>, Nullable<Int32>)

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

AddSeconds(Nullable<DateTime>, Nullable<Int32>)

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

AddSeconds(Nullable<DateTimeOffset>, Nullable<Int32>)

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

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.

AddSeconds(Nullable<TimeSpan>, Nullable<Int32>)

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

C#
[System.Data.Objects.DataClasses.EdmFunction("Edm", "AddSeconds")]
public static TimeSpan? AddSeconds(TimeSpan? timeValue, int? addValue);

Parameters

timeValue
Nullable<TimeSpan>

A valid time span.

addValue
Nullable<Int32>

The number of seconds to add to timeValue.

Returns

The timeValue incremented by addValue.

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

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

AddSeconds(Nullable<DateTime>, Nullable<Int32>)

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

C#
[System.Data.Objects.DataClasses.EdmFunction("Edm", "AddSeconds")]
public static DateTime? AddSeconds(DateTime? timeValue, int? addValue);

Parameters

timeValue
Nullable<DateTime>

A valid date.

addValue
Nullable<Int32>

The number of seconds to add to timeValue.

Returns

The timeValue incremented by addValue.

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

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

AddSeconds(Nullable<DateTimeOffset>, Nullable<Int32>)

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

C#
[System.Data.Objects.DataClasses.EdmFunction("Edm", "AddSeconds")]
public static DateTimeOffset? AddSeconds(DateTimeOffset? timeValue, int? addValue);

Parameters

timeValue
Nullable<DateTimeOffset>

A valid date time offset.

addValue
Nullable<Int32>

The number of seconds to add to timeValue.

Returns

The timeValue incremented by addValue.

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

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1