You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
512 B
20 lines
512 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ICSSoft.FromERP.Extension
|
|
{
|
|
public static class CommonExt
|
|
{
|
|
/// <summary>
|
|
/// 日期转时间戳 , 精确到毫秒
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static long ToMillisecondsTimeStamp(this DateTime dateTime)
|
|
{
|
|
return (dateTime.ToUniversalTime().Ticks - 621355968000000000) / 10000;
|
|
}
|
|
}
|
|
}
|