Jump to content

global name 'strftime' is not defined


Recommended Posts

Hello, i implemented date and time in minimap, and on the start i imported time aswell, and i am getting this error.

Anyone?

 

 

0130 23:37:57008 :: Traceback (most recent call last):

0130 23:37:57008 ::   File "uiMiniMap.py", line 395, in OnUpdate

0130 23:37:57008 :: NameError
0130 23:37:57008 :: : 
0130 23:37:57008 :: global name 'strftime' is not defined
0130 23:37:57008 :: 
 

Here is the line thats showing error: self.dataTime.SetText(strftime("[%H:%M:%S - %d/%m/%Y]"))

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

12 hours ago, Sidelekbrytro said:

Hello, i implemented date and time in minimap, and on the start i imported time aswell, and i am getting this error.

Anyone?

 

 

0130 23:37:57008 :: Traceback (most recent call last):

0130 23:37:57008 ::   File "uiMiniMap.py", line 395, in OnUpdate

0130 23:37:57008 :: NameError
0130 23:37:57008 :: : 
0130 23:37:57008 :: global name 'strftime' is not defined
0130 23:37:57008 :: 
 

Here is the line thats showing error: self.dataTime.SetText(strftime("[%H:%M:%S - %d/%m/%Y]"))

Someone?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.