The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,862 other subscribers

Not just for Delphi, but any environment: Why You Should Use NowUTC Instead of Now in Delphi: A Quick Guide

Posted by jpluimers on 2025/07/30

The video is from a while back, but very relevant and shows in Delphi what I have been advocating to software developers for a very long time:

  • when timestamping use UTC
  • when storing the timestamp store both the UTC timestamp and optionally the UTC timezone/offset and optionally daylight saving indicator of the region it was recorded from

This holds for any environment, so .NET / C#, Python, Delphi and many others as well:

JavaScript is one of the exceptions, as at the heart, timestamp handling is UTC based:

[Wayback/Archive] Why You Should Use NowUTC Instead of Now in Delphi: A Quick Guide – YouTube

--jeroen


Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.