From ea8efb0d8d05684afd0bdc2ab71dfbbe014973c8 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 11 Mar 2024 08:16:57 +0100 Subject: [PATCH] update method names to reflect latest code changes --- components/clock.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/clock.rst b/components/clock.rst index d3879fba84e..45ec484eef5 100644 --- a/components/clock.rst +++ b/components/clock.rst @@ -238,8 +238,8 @@ The constructor also allows setting a timezone or custom referenced date:: ``DatePoint`` also allows to set and get the microsecond part of the date and time:: $datePoint = new DatePoint(); - $datePoint->setMicroseconds(345); - $microseconds = $datePoint->getMicroseconds(); + $datePoint->setMicrosecond(345); + $microseconds = $datePoint->getMicrosecond(); .. note:: @@ -248,8 +248,8 @@ The constructor also allows setting a timezone or custom referenced date:: .. versionadded:: 7.1 - The :method:`Symfony\\Component\\Clock\\DatePoint::setMicroseconds` and - :method:`Symfony\\Component\\Clock\\DatePoint::getMicroseconds` methods were + The :method:`Symfony\\Component\\Clock\\DatePoint::setMicrosecond` and + :method:`Symfony\\Component\\Clock\\DatePoint::getMicrosecond` methods were introduced in Symfony 7.1. .. _clock_writing-tests: