mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-10-16 21:12:58 +08:00
bfe6718fce
* Allow the integration tests to run on .NET Framework * Update appveyor.yml * Update appveyor.yml --------- Co-authored-by: Wojciech Nagórski <wojtpl2@gmail.com>
11 lines
316 B
C#
11 lines
316 B
C#
namespace Renci.SshNet.IntegrationTests.Common
|
|
{
|
|
public static class DateTimeExtensions
|
|
{
|
|
public static DateTime TruncateToWholeSeconds(this DateTime dateTime)
|
|
{
|
|
return new DateTime(dateTime.Ticks - (dateTime.Ticks % TimeSpan.TicksPerSecond), dateTime.Kind);
|
|
}
|
|
}
|
|
}
|