3333import globalVars
3434from logHandler import log
3535import gui
36+ import systemUtils
3637import wx
3738import config
3839from config .configFlags import TetherTo
@@ -263,7 +264,7 @@ def script_reportCurrentSelection(self,gesture):
263264 speech .speakMessage (_ ("No selection" ))
264265 else :
265266 speech .speakTextSelected (info .text )
266-
267+
267268 @script (
268269 # Translators: Input help mode message for report date and time command.
269270 description = _ ("If pressed once, reports the current time. If pressed twice, reports the current date" ),
@@ -272,7 +273,10 @@ def script_reportCurrentSelection(self,gesture):
272273 )
273274 def script_dateTime (self ,gesture ):
274275 if scriptHandler .getLastScriptRepeatCount ()== 0 :
275- text = winKernel .GetTimeFormatEx (winKernel .LOCALE_NAME_USER_DEFAULT , winKernel .TIME_NOSECONDS , None , None )
276+ if systemUtils ._isSystemClockSecondsVisible ():
277+ text = winKernel .GetTimeFormatEx (winKernel .LOCALE_NAME_USER_DEFAULT , None , None , None )
278+ else :
279+ text = winKernel .GetTimeFormatEx (winKernel .LOCALE_NAME_USER_DEFAULT , winKernel .TIME_NOSECONDS , None , None )
276280 else :
277281 text = winKernel .GetDateFormatEx (winKernel .LOCALE_NAME_USER_DEFAULT , winKernel .DATE_LONGDATE , None , None )
278282 ui .message (text )
@@ -2747,7 +2751,6 @@ def script_log_markStartThenCopy(self, gesture):
27472751 )
27482752 @gui .blockAction .when (gui .blockAction .Context .SECURE_MODE )
27492753 def script_openUserConfigurationDirectory (self , gesture ):
2750- import systemUtils
27512754 systemUtils .openUserConfigurationDirectory ()
27522755
27532756 @script (
0 commit comments