We can write SOQL query on AuraDefinitionBundle
object to get all Lightning Component Bundles from an Org.
Sample SOQL:
SELECT ApiVersion,CreatedDate,DeveloperName,MasterLabel,NamespacePrefix FROM AuraDefinitionBundle
Check the below SOQL to get records which are modified in last 5 days.
Sample SOQL:
SELECT Name, Id, LastModifiedDate FROM Account WHERE LastModifiedDate = LAST_N_DAYS:5
Below is the SOQL to query data which was modified between 8 PM and 10 PM.
Sample SOQL:
SELECT Id, LastModifiedDate FROM Contact WHERE LastModifiedDate = TODAY AND HOUR_IN_DAY(LastModifiedDate) >= 20 AND HOUR_IN_DAY(LastModifiedDate) < 22
Sample Query:
SELECT Id, OldValue, NewValue FROM AccountHistory