C# Класс TimeSpanExtension, Adnc

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Ago ( TimeSpan, @this ) : DateTime,

A TimeSpan extension method that substract the specified TimeSpan to the current DateTime.

FromNow ( TimeSpan, @this ) : DateTime,

A TimeSpan extension method that add the specified TimeSpan to the current DateTime.

UtcAgo ( TimeSpan, @this ) : DateTime,

A TimeSpan extension method that substract the specified TimeSpan to the current UTC (Coordinated Universal Time)

UtcFromNow ( TimeSpan, @this ) : DateTime,

A TimeSpan extension method that add the specified TimeSpan to the current UTC (Coordinated Universal Time)

Описание методов

Ago() публичный статический Метод

A TimeSpan extension method that substract the specified TimeSpan to the current DateTime.
public static Ago ( TimeSpan, @this ) : DateTime,
@this TimeSpan,
Результат DateTime,

FromNow() публичный статический Метод

A TimeSpan extension method that add the specified TimeSpan to the current DateTime.
public static FromNow ( TimeSpan, @this ) : DateTime,
@this TimeSpan,
Результат DateTime,

UtcAgo() публичный статический Метод

A TimeSpan extension method that substract the specified TimeSpan to the current UTC (Coordinated Universal Time)
public static UtcAgo ( TimeSpan, @this ) : DateTime,
@this TimeSpan,
Результат DateTime,

UtcFromNow() публичный статический Метод

A TimeSpan extension method that add the specified TimeSpan to the current UTC (Coordinated Universal Time)
public static UtcFromNow ( TimeSpan, @this ) : DateTime,
@this TimeSpan,
Результат DateTime,