According to the documentation for OS object, get_datetime returns a dictionary of the following keys: (day, dst, hour, minute, month, second, weekday, year).
The key “day” returns the numerical day of the month.
The key “weekday” returns a numerical constant for the day of the week as follows: