Using TimeProvider and FakeTimeProvider in WinForms Testing .NET code involving time has always been a pain, but the TimeProvider class (backported to the .NET Framework) gives us awesome new tools.
How to use TimeProvider and FakeTimeProvider (time abstraction in .NET) 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.
Add and subtract time from a DateTime structure in Erlang I was trying to add times in Erlang, but couldn't find an existing function, so I wrote my own.
Using a constant as a DateTime format inside string interpolation 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.
A few thoughts on date/time handling in Erlang 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.
Calculate Easter and other holidays in Erlang I wrote a small library for calculating Easter and other holidays in Erlang. Here's how I did it and what I learned.