using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Wit.SDK.Utils
{
///
/// 日期工具类
///
public class DateTimeUtils
{
///
/// 获取时间戳
///
///
public static long GetTimeStamp()
{
TimeSpan ts = DateTime.Now - new DateTime(1970, 1, 1, 0, 0, 0, 0);
return Convert.ToInt64(ts.TotalMilliseconds);
}
///
/// 日期格式化
///
///
///
///
public static string Format(DateTime dateTime, string format) {
return dateTime.ToString(format);
}
}
}