.. highlightlang:: us .. index:: GetLocalTime .. _getlocaltime: GetLocalTime ============ .. us.tag GetLocalTime ENGLISH DATETIME The :ref:`GetLocalTime` function retrieves the current local date and time. .. function:: ssTime = GetLocalTime() .. us.return **Return Value** *ssTime* is a string with 27 characters: .. list-table:: :header-rows: 1 * - Value - Meaning * - ssTime[1:4] - Year * - ssTime[6:7] - Month * - ssTime[9:10] - Day * - ssTime[13] - Day of week * - ssTime[16:17] - Hours * - ssTime[19:20] - Minutes * - ssTime[22:23] - Seconds * - ssTime[25:27] - Milliseconds .. us.example **Example** :: * GetLocalTime() 1994-11-09 (3) 21:08:13,995. .. seealso:: :ref:`overview-date-and-time`, :ref:`date`, :ref:`time` :sub:`id-1720590`