concept Noda Time in category c#

This is an excerpt from Manning's book C# in Depth, Fourth Edition.
Most of the examples I provide in the book are standalone. But to make a more compelling case for some features, it’s useful to be able to point to where I use them in production code. Most of the time, I use Noda Time for this.
Noda Time is an open source project I started in 2009 to provide a better date and time library for .NET. It serves a secondary purpose, though: it’s a great sandbox project for me. It helps me hone my API design skills, learn more about performance and benchmarking, and test new C# features. All of this without breaking users, of course.
Every new version of C# has introduced features that I’ve been able to use in Noda Time, so I think it makes sense to use those as concrete examples in this book. All of the code is available on GitHub, which means you can clone it and experiment for yourself. The purpose of using Noda Time in examples isn’t to persuade you to use the library, but I’m not going to complain if that happens to be a side effect.
In the rest of the book, I’ll assume that you know what I’m talking about when I refer to Noda Time. In terms of making it suitable for examples, the important aspects of it are as follows:
Listing 3.15. ToInstant extension method targeting DateTimeOffset from Noda Time
using System; namespace NodaTime.Extensions { public static class DateTimeOffsetExtensions { public static Instant ToInstant(this DateTimeOffset dateTimeOffset) { return Instant.FromDateTimeOffset(dateTimeOffset); } } } !@%STYLE%@! {"css":"{\"css\": \"font-weight: bold;\"}","target":"[[{\"line\":6,\"ch\":40},{\"line\":6,\"ch\":44}]]"} !@%STYLE%@!