Added DomainTrending seems working.

Started search features with related html pages, not finish yet.
This commit is contained in:
Mokaddem 2016-07-05 16:53:03 +02:00
parent 8c1eeea6e6
commit 7ff9b9a583
8 changed files with 269 additions and 18 deletions

View file

@ -30,3 +30,12 @@ class Date(object):
def _set_day(self, day):
self.day = day
def substract_day(self, numDay):
import datetime
computed_date = datetime.date(int(self.year), int(self.month), int(self.day)) - datetime.timedelta(numDay)
comp_year = str(computed_date.year)
comp_month = str(computed_date.month).zfill(2)
comp_day = str(computed_date.day).zfill(2)
return comp_year + comp_month + comp_day