• Post Reply Bookmark Topic Watch Topic
  • New Topic

compare getDate() and getLastModified() of URLConnection class

 
Gunjan Sahay
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
my robot is tracking an html page containing certain links to several text files. whenever it finds a text file added on the current date it fires a mail. however, to prevent it from continuously mailing, i have put in a check to get the lastmodified() of the txt file. however, the lastmodified returned to me is some dec31, 1969 field and hence the program takes it that the object is old.
kindly help me out...its really urgent. i am attchaing the code below as well.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Biggun,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Sockets and Internet Protocols forum...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!