mirror of
https://github.com/google/nomulus
synced 2026-04-09 11:09:24 +00:00
Our existing precision is milliseconds so we want to stick with that for Instants. If we want to increase the precision globally after that we can do so all in one go post-migration, but for now, it would be a bad thing to have mixed precision going on just depending on whether a class happens to be migrated yet or not. This PR also migrates all existing DateTime.nowUtc() calls to use the Clock interface, so that when they are migrated they will get the benefit of this precision-setting as well. BUG= http://b/496985355
Summary
This project holds some of the general-purpose utility classes that do not rely on the registry domain model.
This is an intermediate step in untangling the circular dependencies between :core and :util subprojects.