C#がタイムタイム・スタンプ・フォーマットを変換します

//タイムスタンプ形式
公共のDateTime StampToDateTime(文字列timeStampに)
{
日時dateTimeStart = TimeZone.CurrentTimeZone.ToLocalTime(新規のDateTime(1970、1、1))。
長いLTIME = long.Parse(timeStampに+ "0000000")。
TimeSpan toNow =新しいのTimeSpan(LTIME)。 
dateTimeStart.Add(toNow)を返します。
}

おすすめ

転載: www.cnblogs.com/yanshaoxiong/p/11320222.html