Rounds a DateTime value to the nearest second.
Namespace: Zeptomoby.OrbitTools.TrackAssembly: Zeptomoby.OrbitTools.Track (in Zeptomoby.OrbitTools.Track.dll) Version: 1.5.0.0 (1.5.0.0)
Syntax
C# |
---|
public static DateTime NearestSecond(
this DateTime datetime
) |
Visual Basic |
---|
<ExtensionAttribute> _
Public Shared Function NearestSecond ( _
datetime As DateTime _
) As DateTime |
Visual C++ |
---|
[ExtensionAttribute]
public:
static DateTime NearestSecond(
DateTime datetime
) |
Parameters
- datetime
- Type: System..::..DateTime
The time that will be rounded.
Return Value
The rounded value.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DateTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see
or
.
See Also