Skip to content

DavidThielen/TradeWindsDateTime

Repository files navigation

TradeWindsDateTime

These are some classes I created for handling the DateTime. The primary class is DateTimeZone which is DateTime+TimeZone.

When working with DateTime across timezones, do not use UTC Offset - that will always bite you in the ass sooner or later. Daylight Savings Time start/end is a political decision and it changes regularly.

The DateTimeZone can be saved in a database as the DateTime & the TimeZoneId (string). Entity Framework handles a DateTimeZone property fine, nothing extra is needed (it saves it as 2 columns).

This is under the MIT license. If you find this useful I ask (not a requirement) that you consider reading my book I DON’T KNOW WHAT I’M DOING!: How a Programmer Became a Successful Startup CEO.

And if you like it, please review it on Amazon and/or GoodReads. The number of legitimate reviews helps a lot. Much appreciated.

NodaTime

If you need significant additional datetime functionality, use nodatime instead of this library. This library is useful if the only additional datetime functionality you need is the DateTimeZone class.

About

DateTime TimeZone helper classes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages