Class DateTimeExtensions
时间扩展方法
Inheritance
Object
DateTimeExtensions
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: FBoxClientDriver.Contract.Helpers
Assembly: FBoxClientDriver.Contract.dll
Syntax
public static class DateTimeExtensions
Methods
FromJsEpoch(Int64)
时间扩展方法
Declaration
public static DateTime FromJsEpoch(long jsTime)
Parameters
Type | Name | Description |
---|---|---|
Int64 | jsTime |
Returns
Type | Description |
---|---|
DateTime |
JsEpochTime(DateTime)
时间扩展方法
Declaration
public static long JsEpochTime(this DateTime dateTime)
Parameters
Type | Name | Description |
---|---|---|
DateTime | dateTime |
Returns
Type | Description |
---|---|
Int64 |
UnixEpochTime(DateTime)
时间扩展方法
Declaration
public static long UnixEpochTime(this DateTime dateTime)
Parameters
Type | Name | Description |
---|---|---|
DateTime | dateTime |
Returns
Type | Description |
---|---|
Int64 |