Python Script Bug

max.caly at gmail.com max.caly at gmail.com
Thu Oct 23 14:54:20 EDT 2008


Hello everyone,
I would like to know what isn't good in my script.
#!/usr/bin/python
# -*- coding: iso-8859-15 -*-
from time import strftime
import datetime
t = input(datetime.date)
global t
print t.strftime("Day %w of the week a %A . Day %d of the month (%B).
")
print t.strftime("Day %j of the year (%Y), in week %W of the year.")
raw_input()
i get error :
    print t.strftime("Day %w of the week a %A . Day %d of the month
(%B). ")
AttributeError: 'tuple' object has no attribute 'strftime'
Thanks for your Help



More information about the Python-list mailing list