Python Automation and Machine Learning for EM and ICs

An Online Book, Second Edition by Dr. Yougui Liao (2024)

Python Automation and Machine Learning for EM and ICs - An Online Book

Chapter/Index: Introduction | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | Appendix

Year, Month, Date, Hour, Minute, Second and work week in Python

date.today(), today.strftime: Print the date of today: code:
          Print the date of today
Output:
          Print the date of today

===================================================================

datetime, date_joined, date.today((): Print the date of today: code:
          Print the date of today
Output:
          Print the date of today

====================================================

datefmt: Monitor changes in a folder: code:
         Monitor changes in a folder

============================================

Find and convert the file time/date when the file is copied into the folder: Code:         
          Check if file exists or not, and then open it if there is
Output:         
         Check if file exists or not, and then open it if there is

This script (code) prints the current work week (ISO week number) of today. This work week is defined from Monday to Sunday.