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-10-13 23:30:26