|
发表于 2017-12-13 17:16:57
|
显示全部楼层
using System;
using System.Collections.Generic;
using SpiderInterface;
class LocoyCode{
public string Run(string content,ResponseEntry response){
string timeStamp = content;
DateTime newTime;
DateTime dateTimeStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1));
long lTime = long.Parse(timeStamp + "0000000");
TimeSpan toNow = new TimeSpan(lTime);
newTime = dateTimeStart.Add(toNow);
content = newTime.ToString("yyyy-MM-dd HH:mm:ss");
return content;
}
}
|
|