Please, type the next: import datetime.datetime dir(datetime.datetime) import datetime dir(datetime.datetime)
The results in my winXP SP2 with python 2.5 are: >>> import datetime.datetime Traceback (most recent call last): File , line 0, in ##241 File , line 0, in _stub_##2 ImportError: No module named datetime >>> dir(datetime.datetime) Traceback (most recent call last): File , line 0, in ##247 NameError: name 'datetime' is not defined >>> import datetime >>> dir(datetime.datetime) ['__add__', '__class__', '__delattr__', '__doc__', '__eq__', '__ge__', '__getattribute__', '__getnewargs__', '__gt__', ' hash__', '__init__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__nonzero__', '__radd__', '__reduce__', '__ duce_ex__', '__repr__', '__rsub__', '__setattr__', '__str__', '__sub__', 'astimezone', 'combine', 'ctime', 'date', 'day' 'dst', 'fromordinal', 'fromtimestamp', 'hour', 'isocalendar', 'isoformat', 'isoweekday', 'max', 'microsecond', 'min', 'm ute', 'month', 'now', 'replace', 'resolution', 'second', 'strftime', 'time', 'timetuple', 'timetz', 'today', 'toordinal' 'tzinfo', 'tzname', 'utcfromtimestamp', 'utcnow', 'utcoffset', 'utctimetuple', 'weekday', 'year'] >>> _______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
