This has always been a hot topic. Especially since Y2k. How to test those monthly, yearly transitions. Here is a blog that explains the tools available https://adamj.eu/tech/2020/06/03/introducing-time-machine/ freezegun – https://github.com/spulec/freezegun
Time testing for Python – Linux
Installing python3 on Amazon Linux2
Python3 isn’t installed by default – Python 2.7 is by default. Use ‘yum’. apt-get was in the older version of Amazon Linux. [root@ip-x.y.z.12 ec2-user]# sudo yum install python3 Loaded plugins: extras_suggestions, langpacks, priorities, update-motd amzn2-core | 3.7 kB 00:00 Resolving Dependencies –> Running transaction check —> Package python3.x86_64 0:3.7.9-1.amzn2.0.1 will be installed –> Processing Dependency: python3-libs(x86-64) = 3.7.9-1.amzn2.0.1 for package: […]