[Tutor] MOdule accessing its own date/time stamp?
Lloyd Kvam
pythontutor at venix.com
Sat Feb 21 16:53:31 EST 2004
The module has a __file__ attribute. os.stat applied to that file name should
give you the time stamp. You will have format issues to battle after that.
Terry Carroll wrote:
> Is there any way for a module to access the timestamp for itself?
>
> I'd like a module to be able to print out the time/date on which it was
> last saved.
>
--
Lloyd Kvam
Venix Corp.
1 Court Street, Suite 378
Lebanon, NH 03766-1358
voice: 603-653-8139
fax: 801-459-9582
More information about the Tutor
mailing list