TimeProvider and the End of Untestable DateTime.Now
Learn how .NET 8's TimeProvider replaces homegrown DateTime wrappers for testable time-dependent code.
Learn how .NET 8's TimeProvider replaces homegrown DateTime wrappers for testable time-dependent code.
An R function to find palindrome dates across multiple international date formats within a specified range.
Explains how to display PostgreSQL timestamps with a specific timezone offset, including a custom function solution.
Learn how to use the freezegun library to freeze time in Python tests for reliable time-dependent code testing.
Python 3.12 deprecates datetime.utcnow(). This article explains why and how to migrate to timezone-aware datetime.now(timezone.utc).
A technical guide on using Python's datetime module to handle dates, times, and timezones effectively within Django web applications.
A comprehensive guide to JavaScript Date object, covering creation, formatting, and manipulation of dates and times for developers.
Explores .NET 8's new TimeProvider and FakeTimeProvider for testing time-dependent code, enabling controlled manipulation of time in unit tests.
Explains how MongoDB stores DateTime in UTC and how to handle serialization/deserialization with C#, including using DateTimeOffset and custom serializers.
A guide to handling date and time inputs in ASP.NET Core Razor Pages forms, covering native HTML5 controls and formatting.
A guide to creating a custom model binder in ASP.NET Core Razor Pages to handle HTML5 week input type binding.
A technical exploration of date/time complexities, timezone changes, and edge cases in software scheduling, framed as a historical scenario.
Explores the challenges of testing date/time functions in Python and introduces dependency injection as a solution to mock time for reliable unit tests.
Announcing padr v0.5.0, an R package update with new arguments for the `thicken` function to drop original datetime columns and handle tied observations.
A developer's guide to the complexities of handling time zones, daylight saving, and IANA databases in software development.
A PowerShell developer explains why using the .Seconds property for elapsed time can cause bugs and recommends using .TotalSeconds instead.
A guide to avoiding date format confusion in programming by using ISO 8601, with examples in PowerShell.
A tutorial on creating a custom Angular pipe to sort datetime columns in an *ngFor directive, handling both ascending and descending order.
Explains how to store high-precision timestamps in MySQL using the DECIMAL type, including storage optimization and historical context.
Explains how to correctly store and retrieve UTC dates in SQLite using the ADO.NET provider by setting DateTimeKind=Utc in the connection string.