date.timestamp not found in python?
Question: After changing the import as a from-import i'm running into this error:

    
    
    from datetime import datetime, date, timedelta
    today = date.today()
    from time import mktime
    from feedparser import feedparser
    import settings
    
    def check_calendar():
        d = feedparser.parse(settings.personal_calendar_feed)
        for entry in d.entries:
            if(date.fromtimestamp(mktime(entry.date_parsed))==today):
    
    Traceback (most recent call last):
      File computer.py", line 734, in <module>
        check_calendar()
      File "computer.py", line 210, in check_calendar
        if(date.fromtimestamp(mktime(entry.date_parsed))==today):
    AttributeError: 'function' object has no attribute 'fromtimestamp'
    


Answer: It is highly possible that you have redeclared `date` as function `def
date():` earlier in code. Otherwise it makes no sense.

