I have been watching Jason Taylor presentation about Clean Architecture with ASP.NET Core (timing 35:52)
https://www.youtube.com/watch?v=dK4Yb6-LxAk&t=2134s&ab_channel=GOTOConferences
And he created a DateTimeService which returns DateTime.Now and registered via AddTransient method, he suggests using it instead of using DateTime.Now directly because in this case he doesn't have a dependency on the machine clock.
It's not clear to me why he doesn't have a dependency in this case, could you please explain how it works?