C# Class TraktRater.Extensions.DateTimeExtensions

Datei anzeigen Open project: damienhaynes/TraktRater

Public Methods

Method Description
ToISO8601 ( this dt, double hourShift ) : string

Converts string DateTime to ISO8601 format 2014-09-01T09:10:11.000Z

ToYear ( this year ) : int?

Method Details

ToISO8601() public static method

Converts string DateTime to ISO8601 format 2014-09-01T09:10:11.000Z
public static ToISO8601 ( this dt, double hourShift ) : string
dt this DateTime as string
hourShift double Number of hours to shift original time
return string

ToYear() public static method

public static ToYear ( this year ) : int?
year this
return int?