C# Класс Kippt.Utils

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

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

Метод Описание
FormatToUri ( Uri uri ) : Uri

Returns an Uri after replacement of the format item with the corresponding string representation.

ToUniversalTime ( long date ) : System.DateTime

Converts unix time to universal time.

ToUnixTime ( System.DateTime date ) : long

Converts a date to Unix time format.

UriBuilder ( Uri baseUri, object>.Dictionary parameters ) : Uri

Adds query strings to a given uri.

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

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

Returns an Uri after replacement of the format item with the corresponding string representation.
public static FormatToUri ( Uri uri ) : Uri
uri System.Uri Input Uri.
Результат System.Uri

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

Converts unix time to universal time.
public static ToUniversalTime ( long date ) : System.DateTime
date long Unix time date.
Результат System.DateTime

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

Converts a date to Unix time format.
public static ToUnixTime ( System.DateTime date ) : long
date System.DateTime Date to convert.
Результат long

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

Adds query strings to a given uri.
public static UriBuilder ( Uri baseUri, object>.Dictionary parameters ) : Uri
baseUri System.Uri Input uri.
parameters object>.Dictionary Dictionnary of parameters to add.
Результат System.Uri