� �L�h � � � d dl Z dZdZd� Zd� Zd� Z ed� � edd � � gZ ed� � edd � � gZdS ) � Ni�Q � c �X � t t j � � � � t | z z S )N)�int�time�SECONDS_IN_DAY��dayss �4/usr/lib/Acronis/PyTools/commands/retention_specs.py�get_days_before_timer s � ��t�y�{�{���n�t�3�3�3� c �F � dddt fdddt |� � fgd| d�S ) N�z^Is�stringzTol::History::Plain::Activity�.State�dword�z.Period.FinishTime�sqwordr �.Period.FinishTime^Lessr T��pattern�historical_order�objects_count_limit��ACTIVITY_COMPLETED_STATEr )�amountr s r �completed_activities_by_amountr sD � � ?� �w� 8�9�/� &��2F�t�2L�2L�M� � !�%� � � r c �F � dddt fdddt | � � fgddd �S ) Nr r r r r r Tr r r r s r �#completed_activities_by_age_in_daysr sD � � ?� �w� 8�9�/� &��2F�t�2L�2L�M� � !� � � � r �<