C# Class Senparc.Weixin.Helpers.DateTimeHelper

Show file Open project: JeffreySu/WeiXinMPSDK

Public Properties

Property Type Description
BaseTime System.DateTime

Public Methods

Method Description
GetDateTimeFromXml ( long dateTimeFromXml ) : System.DateTime

转换微信DateTime时间到C#时间

GetDateTimeFromXml ( string dateTimeFromXml ) : System.DateTime

转换微信DateTime时间到C#时间

GetWeixinDateTime ( System.DateTime dateTime ) : long

获取微信DateTime(UNIX时间戳)

Method Details

GetDateTimeFromXml() public static method

转换微信DateTime时间到C#时间
public static GetDateTimeFromXml ( long dateTimeFromXml ) : System.DateTime
dateTimeFromXml long 微信DateTime
return System.DateTime

GetDateTimeFromXml() public static method

转换微信DateTime时间到C#时间
public static GetDateTimeFromXml ( string dateTimeFromXml ) : System.DateTime
dateTimeFromXml string 微信DateTime
return System.DateTime

GetWeixinDateTime() public static method

获取微信DateTime(UNIX时间戳)
public static GetWeixinDateTime ( System.DateTime dateTime ) : long
dateTime System.DateTime 时间
return long

Property Details

BaseTime public static property

public static DateTime,System BaseTime
return System.DateTime