其實.net framewordk4.6以上已經有方法可以直接取出 //.net 4.6 long unixTime = ((DateTimeOffset)foo).ToUnixTimeSeconds();.
確定! 回上一頁