Re: [Tutor] Getting Date/Time from a file and using it in calculations

2007-08-15 Thread Martin Walsh
[EMAIL PROTECTED] wrote: > Hello there > > Messing around with certain time and datetime objects, I have managed to > subtract a date/time from the present time thusly: > > from time import * > import datetime > > one = datetime.datetime.now() > two = datetime.datetime(2007, 8, 29, 11, 15, 00)

Re: [Tutor] Getting Date/Time from a file and using it in calculations

2007-08-15 Thread Eric Brunson
[EMAIL PROTECTED] wrote: > Hello there > > Messing around with certain time and datetime objects, I have managed to > subtract a date/time from the present time thusly: > datetime is definitely a module that takes a little getting used to. > from time import * > (Bad form) > import datet

[Tutor] Getting Date/Time from a file and using it in calculations

2007-08-15 Thread dgj502
Hello there Messing around with certain time and datetime objects, I have managed to subtract a date/time from the present time thusly: from time import * import datetime one = datetime.datetime.now() two = datetime.datetime(2007, 8, 29, 11, 15, 00) difference = one - two print difference H