3 ms·
Awesome write-up! I love C# and this was really well-written. Great work. Pro tip: Use DateTimeOffset instead of DateTime. It's less frustratingly ambiguous th
by nbarbettini 10y ago
Awesome write-up! I love C# and this was really well-written. Great work.
Pro tip: Use DateTimeOffset instead of DateTime. It's less frustratingly ambiguous than DateTime, and already has a Unix timestamp helper function if you're on the latest framework: https://msdn.microsoft.com/en-us/library/system.datetimeoffset.tounixtimeseconds(v=vs.110).aspx https://msdn.microsoft.com/en-us/library/system.datetimeoffs...
- cheatdeath 10y agoOh cool, thanks! I wasn't aware of DateTimeOffset.