C# Класс Disco.DateTimeExtensions

Показать файл Открыть проект

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

Метод Описание
From ( this moment, System.DateTime to ) : string
From ( this moment, System.DateTime to, bool withoutSuffix ) : string
From ( this moment, System.DateTime to, bool withoutSuffix, string nullValue ) : string
From ( this moment, System.DateTime to, string nullValue ) : string
FromNow ( this moment ) : string
FromNow ( this moment, bool withoutSuffix ) : string
FromNow ( this moment, bool withoutSuffix, string nullValue ) : string
FromNow ( this moment, string nullValue ) : string
Humanize ( this duration, bool withSuffix ) : string
ToFullDateTime ( this d ) : string
ToFullDateTime ( this d, string NullValue = "N/A" ) : string
ToISO8601 ( this d ) : string
ToUnixEpoc ( this d ) : long
ToUnixEpoc ( this d ) : long?

Приватные методы

Метод Описание
RelativeTime ( this difference, bool withoutSuffix ) : string

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

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

public static From ( this moment, System.DateTime to ) : string
moment this
to System.DateTime
Результат string

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

public static From ( this moment, System.DateTime to, bool withoutSuffix ) : string
moment this
to System.DateTime
withoutSuffix bool
Результат string

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

public static From ( this moment, System.DateTime to, bool withoutSuffix, string nullValue ) : string
moment this
to System.DateTime
withoutSuffix bool
nullValue string
Результат string

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

public static From ( this moment, System.DateTime to, string nullValue ) : string
moment this
to System.DateTime
nullValue string
Результат string

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

public static FromNow ( this moment ) : string
moment this
Результат string

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

public static FromNow ( this moment, bool withoutSuffix ) : string
moment this
withoutSuffix bool
Результат string

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

public static FromNow ( this moment, bool withoutSuffix, string nullValue ) : string
moment this
withoutSuffix bool
nullValue string
Результат string

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

public static FromNow ( this moment, string nullValue ) : string
moment this
nullValue string
Результат string

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

public static Humanize ( this duration, bool withSuffix ) : string
duration this
withSuffix bool
Результат string

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

public static ToFullDateTime ( this d ) : string
d this
Результат string

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

public static ToFullDateTime ( this d, string NullValue = "N/A" ) : string
d this
NullValue string
Результат string

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

public static ToISO8601 ( this d ) : string
d this
Результат string

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

public static ToUnixEpoc ( this d ) : long
d this
Результат long

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

public static ToUnixEpoc ( this d ) : long?
d this
Результат long?