EssentialsDateTime.AddMilliseconds method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Time
Assembly Skybrud.Essentials.dll

AddMilliseconds(double)

Returns a new EssentialsDateTime that adds the specified number of milliseconds to the value of this instance.

public EssentialsDateTime AddMilliseconds(double value)

Parameters

value Double

A number of whole and fractional milliseconds. The value parameter can be negative or positive. Note that this value is rounded to the nearest integer.

Returns

An object whose value is the sum of the date and time represented by this instance and the number of milliseconds represented by value.

Exceptions

The resulting EssentialsDateTime is less than System.DateTime.MinValue or greater than System.DateTime.MaxValue.