C# Class Kippt.Utils

Common helpers.
Afficher le fichier Open project: Haythem/Kippt.NET

Méthodes publiques

Méthode Description
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.

Method Details

FormatToUri() public static méthode

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.
Résultat System.Uri

ToUniversalTime() public static méthode

Converts unix time to universal time.
public static ToUniversalTime ( long date ) : System.DateTime
date long Unix time date.
Résultat System.DateTime

ToUnixTime() public static méthode

Converts a date to Unix time format.
public static ToUnixTime ( System.DateTime date ) : long
date System.DateTime Date to convert.
Résultat long

UriBuilder() public static méthode

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.
Résultat System.Uri