python 3.x - datetime.today attributes error -


i'm trying use datetime.today code countdown seconds every time call attribute of time, interpreter denies attribute exists. example:

x=datetime.today() x= x.hour print(x) 

will return:

traceback (most recent call last): file "c:\users\manuel\downloads\graphics master v1.py", line 2, in <module> x=x.hour attributeerror: 'builtin_function_or_method' object has no attribute 'hour' 

in other programs have tested make sure correct attribute , syntax in master program keep getting error.

datetime.today method not attribute.

try datetime.today()


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -