A comparison of DateTime to DateTimeOffset
Should you use DateTime or DateTimeOffset? Well, it depends…
Should you use DateTime or DateTimeOffset? Well, it depends…
Testing .NET code involving time has always been a pain, but the TimeProvider class (backported to the .NET Framework) gives us awesome new tools.
Testing time in C# is difficult, but .NET 8 (C# 12) adds an abstract TimeProvider class that makes it easier. Let’s take a closer look.
I was trying to add times in Erlang, but couldn’t find an existing function, so I wrote my own.
I was upgrading some code to use string interpolation, a feature introduced in C# 6, when I ran into a small snag with DateTimes and a format string stored as a constant.
Handling date and times is a thorn in every experienced developer’s side. If you haven’t had the pleasure yet, you will. ;) Coming off a week of standardizing some datetimes across an Erlang app, here’s a few personal thoughts.
I wrote a small library for calculating Easter and other holidays in Erlang. Here’s how I did it and what I learned.