6 Commits

Author SHA1 Message Date
Cédric Luthi
c94cd05b8b Obsolete UnixTimestampExtensions methods (#2121)
* The equivalent of `public static DateTimeOffset FromUnixTime(this long unixTime)` exists in the framework since .NET Framework 4.6: https://docs.microsoft.com/en-us/dotnet/api/system.datetimeoffset.fromunixtimeseconds
* The equivalent of `public static long ToUnixTime(this DateTimeOffset date)` exists in the framework since .NET Framework 4.6: https://docs.microsoft.com/en-us/dotnet/api/system.datetimeoffset.tounixtimeseconds
2020-03-03 09:30:30 -04:00
Brendan Forster
80719c0033 aaaand format the code 2015-11-04 13:38:51 -08:00
Haacked
6179361ed9 Add tests for UnixTimestampExtensions
Also refactored the code to be a bit easier to understand and have less
calculations.
2015-08-07 16:02:20 -07:00
Mark Taylor
e092a109ea Additional changes to support rate_limit API call 2015-07-26 22:03:19 +01:00
Brendan Forster
eb902bcdce tidying up some docs in the Extensions namespace 2015-01-03 09:31:35 -08:00
Amy Palamountain
8469a50c11 Unix Timestamp helper 2014-02-16 17:05:07 +13:00