“...I've been working since 2008 with Ruby / Ruby on Rails, love a bit of Elixir / Phoenix and learning Rust. I also poke through other people's code and make PRs for OpenSource Ruby projects that sometimes make it Currently working for GenieBelt who are based in Copenhagen, Denmark ...”

Rob Lacey
Senior Software Engineer, Copenhagen, Denmark

It's time to get ill.

What’s the time, it’s tell to get ill. Well, some times are more granular others.

On MacOSX, time has a precision of 6 decimal places by default

⢀⡴⠊⢉⡟⢿  IRB v1.18.0 - Ruby 3.4.8
⣎⣀⣴⡋⡟⣻  "history -g pattern" to search history
⣟⣼⣱⣽⣟⣾  ~/repos/geniebelt/problem

irb(main):001> Time.now
=> 2026-06-17 22:23:50.474839 +0200

But on Ubuntu, time has a precision of 9 decimal places by default

irb(main):001> Time.now
=> 2026-06-17 20:23:09.033346693 +0000

This is annoying, especially when it comes to specs. What really matters is here is ensuring that our datetime fields have the correct precision that we need for our purposes. Which could be 6 or 9.