This commit is contained in:
2021-11-19 11:25:06 +08:00
parent d743382868
commit 3cc0a9bef2
+4 -2
View File
@@ -156,9 +156,11 @@ if (!function_exists('now')) {
*/ */
function now(): string function now(): string
{ {
$sprintf = sprintf('%04d', microtime(true)); $replace = str_replace(time() . '.', '', (string)microtime(true));
return date('Y-m-d H:i:s') . '.' . str_replace(time() . '.', '', $sprintf); $sprintf = sprintf('%04d', $replace);
return date('Y-m-d H:i:s') . '.' . $sprintf;
} }
} }