C# Class Kippt.Utils

Common helpers.
Datei anzeigen Open project: Haythem/Kippt.NET

Public Methods

Method 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 method

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.
return System.Uri

ToUniversalTime() public static method

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

ToUnixTime() public static method

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

UriBuilder() public static method

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.
return System.Uri