public static string ConvertToTimeStamp(DateTime DT)
{
return (TimeHelper.ConvertToTimeStamp(DT).ConvertLong() / 1000).ConvertInt().ConvertString();
}
public static DateTime FromUnixTime(long unixTime)
{
return new DateTime(1970, 1, 1).AddSeconds(unixTime).ToLocalTime();
}
时间: 2024-12-23 01:46:39