[Tutor] Program to report if file was modified today

bob gailer bgailer at gmail.com
Thu Feb 12 05:21:35 CET 2009


David wrote:
> I get this error with the int(time.localtime())
>  start_of_today = int(time.localtime())
> TypeError: int() argument must be a string or a number, not 
> 'time.struct_time'

Should have been start_of_today = int(time.time())

-- 
Bob Gailer
Chapel Hill NC
919-636-4239


More information about the Tutor mailing list