What if there was a way to find out how many seconds have passed since the very beginning of existence? Many have said "Nobody knows that" but they aren't taking Unix time into consideration.
Known as the 'epoch', the Unix operating system was created by the gods of Unix at a single datetime point of 00:00:00 Thursday, 1 January 1970 (UTC).
How can we capture this origin point of all Unixistence? We can use the datetime classmethod known as 'datetime.fromtimestamp(timestamp)' where 'timestamp' is any second since the epoch. If we do:
epoch = datetime.utcfromtimestamp(0) we will get the exact point in datetime where it all began!
Create a function that will take one parameter that represents any datetime object. Within body of function, create a time delta object from this parameter and the epoch; determine how many seconds have passed since the beginning of time!
Note: Round the final value by 2 decimal!