Table of Contents

Method AddSeconds

Namespace
MongoDB.Driver.Linq
Assembly
MongoDB.Driver.dll

AddSeconds(DateTime, double, string)

Adds a value in seconds to a DateTime taking a timezone into consideration.

public static DateTime AddSeconds(this DateTime @this, double value, string timezone)

Parameters

this DateTime

The original DateTime.

value double

The value to be added.

timezone string

The timezone.

Returns

DateTime

The resulting DateTime.

Remarks

See the server documentation for $dateAdd for information on timezones in MongoDB.