def age(self):
        """
        Get the age of the PID file.
        """
        
        # Created timestamp
        created = self.created()
        
        # Age in seconds / minutes / hours / days
        age_secs  = time() - created
        age_mins  = 0 if (age_secs < 60) else (age_secs / 60)
        age_hours = 0 if (age_secs < 3600) else (age_mins / 60)
        age_days  = 0 if (age_secs < 86400) else (age_hours / 24)
        
        # Return the age tuple
        return (
            int(age_secs), 
            int(age_mins), 
            int(age_hours), 
            int(age_days)
        )
def age ( self ) : created = self . created ( ) age_secs = time ( ) - created age_mins = 0 if ( age_secs < 60 ) else ( age_secs / 60 ) age_hours = 0 if ( age_secs < 3600 ) else ( age_mins / 60 ) age_days = 0 if ( age_secs < 86400 ) else ( age_hours / 24 ) return ( int ( age_secs ) , int ( age_mins ) , int ( age_hours ) , int ( age_days ) )
Get the age of the PID file.