The class TimeString
provides a few convenient static methods and constants to deal with
MySql datetime strings with microseconds, e.g., '1999-12-31 23:59:50.123456'
Check the class source file for details.
Usage:
composer require thomas-institut/timestring