06-27-2022, 06:40 AM
I'm pretty sure this isn't right.
I'm having trouble finding calculations for Epoch LINUX time format, but it isn't what this python script is.
First line I think is a red herring.
It decodes that encoded string and removes spaces, but doesn't encrypt it.
2nd line sets up Format DateTime today as d.
i.e. today = 6/26/2022 in American
date then takes (10000*d.year + 100*d.month + d.day)
= 10000*2022 + 100*6 + 26
= 20220000+ 600 + 26
= 20220626
= yyyymmdd in string
I'm having trouble finding calculations for Epoch LINUX time format, but it isn't what this python script is.
First line I think is a red herring.
It decodes that encoded string and removes spaces, but doesn't encrypt it.
2nd line sets up Format DateTime today as d.
i.e. today = 6/26/2022 in American
date then takes (10000*d.year + 100*d.month + d.day)
= 10000*2022 + 100*6 + 26
= 20220000+ 600 + 26
= 20220626
= yyyymmdd in string