C# Class MetroFanfou.Helper.TimeToSpanConvert

Inheritance: IValueConverter
Exibir arquivo Open project: dodola/WP7Fanfou

Public Methods

Method Description
Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
ToGMTFormat ( System.DateTime dt ) : string

本地时间转成GMT格式的时间

Method Details

Convert() public method

public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object
targetType System.Type
parameter object
culture System.Globalization.CultureInfo
return object

ConvertBack() public method

public ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object
targetType System.Type
parameter object
culture System.Globalization.CultureInfo
return object

ToGMTFormat() public static method

本地时间转成GMT格式的时间
public static ToGMTFormat ( System.DateTime dt ) : string
dt System.DateTime
return string