1300124700345
14.03.2011 5:45 PM
1300124700
static readonly DateTime UnixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc); public static long ToUnixTime(DateTime date) { return Convert.ToInt64((date - UnixEpoch).TotalSeconds); }
public static DateTime? ConvertUnixTimeStamp(string unixTimeStamp) { return new DateTime(1970, 1, 1, 0, 0, 0).AddMilliseconds(Convert.ToDouble(unixTimeStamp)); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)