Пример #1
0
 def GetAllMACTimes(self, Modified, Accessed, Created):
     mDate = 0
     mMonth = 0
     aDate = 0
     aMonth = 0
     cDate = 0
     cMonth = 0
     if Created > 0:
         cDate = CommonFunctions.GetDateSeconds(Created)
         cMonth = CommonFunctions.GetMonthSeconds(Created)
         
         if (Globals.TimelinesDict['Created']['MinDate'] == -1 or Globals.TimelinesDict['Created']['MinDate'] > cDate):
             Globals.TimelinesDict['Created']['MinDate'] = cDate
         if (Globals.TimelinesDict['Created']['MaxDate'] == -1 or Globals.TimelinesDict['Created']['MaxDate'] < cDate):
             Globals.TimelinesDict['Created']['MaxDate'] = cDate
             
       
         if (Globals.TimelinesDict['Created']['MinMonth'] == -1 or Globals.TimelinesDict['Created']['MinMonth'] > cMonth):
             Globals.TimelinesDict['Created']['MinMonth'] = cMonth
         if (Globals.TimelinesDict['Created']['MaxMonth'] == -1 or Globals.TimelinesDict['Created']['MaxMonth'] < cMonth):
             Globals.TimelinesDict['Created']['MaxMonth'] = cMonth
         
     if Modified > 0:
         mDate = CommonFunctions.GetDateSeconds(Modified)
         mMonth = CommonFunctions.GetMonthSeconds(Modified)
     
         if (Globals.TimelinesDict['Modified']['MinDate'] == -1 or Globals.TimelinesDict['Modified']['MinDate'] > mDate):
             Globals.TimelinesDict['Modified']['MinDate'] = mDate
         if (Globals.TimelinesDict['Modified']['MaxDate'] == -1 or Globals.TimelinesDict['Modified']['MaxDate'] < mDate):
             Globals.TimelinesDict['Modified']['MaxDate'] = mDate
             
         if (Globals.TimelinesDict['Modified']['MinMonth'] == -1 or Globals.TimelinesDict['Modified']['MinMonth'] > mMonth):
             Globals.TimelinesDict['Modified']['MinMonth'] = mMonth
         if (Globals.TimelinesDict['Modified']['MaxMonth'] == -1 or Globals.TimelinesDict['Modified']['MaxMonth'] < mMonth):
             Globals.TimelinesDict['Modified']['MaxMonth'] = mMonth
             
     if Accessed > 0:
         aDate = CommonFunctions.GetDateSeconds(Accessed)
         aMonth = CommonFunctions.GetMonthSeconds(Accessed)
         if (Globals.TimelinesDict['Accessed']['MinDate'] == -1 or Globals.TimelinesDict['Accessed']['MinDate'] > aDate):
             Globals.TimelinesDict['Accessed']['MinDate'] = aDate
         if (Globals.TimelinesDict['Accessed']['MaxDate'] == -1 or Globals.TimelinesDict['Accessed']['MaxDate'] < aDate):
             Globals.TimelinesDict['Accessed']['MaxDate'] = aDate
                     
                     
         if (Globals.TimelinesDict['Accessed']['MinMonth'] == -1 or Globals.TimelinesDict['Accessed']['MinMonth'] > aMonth):
             Globals.TimelinesDict['Accessed']['MinMonth'] = aMonth
         if (Globals.TimelinesDict['Accessed']['MaxMonth'] == -1 or Globals.TimelinesDict['Accessed']['MaxMonth'] < aMonth):
             Globals.TimelinesDict['Accessed']['MaxMonth'] = aMonth
     
     return mDate, mMonth, aDate, aMonth, cDate, cMonth