C# Class TimeSpanExtension, Adnc

Mostra file Open project: AlphaYu/Adnc Class Usage Examples

Public Methods

Method Description
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)

Method Details

Ago() public static method

A TimeSpan extension method that substract the specified TimeSpan to the current DateTime.
public static Ago ( TimeSpan, @this ) : DateTime,
@this TimeSpan,
return DateTime,

FromNow() public static method

A TimeSpan extension method that add the specified TimeSpan to the current DateTime.
public static FromNow ( TimeSpan, @this ) : DateTime,
@this TimeSpan,
return DateTime,

UtcAgo() public static method

A TimeSpan extension method that substract the specified TimeSpan to the current UTC (Coordinated Universal Time)
public static UtcAgo ( TimeSpan, @this ) : DateTime,
@this TimeSpan,
return DateTime,

UtcFromNow() public static method

A TimeSpan extension method that add the specified TimeSpan to the current UTC (Coordinated Universal Time)
public static UtcFromNow ( TimeSpan, @this ) : DateTime,
@this TimeSpan,
return DateTime,