2
6 9 2023 Cohort 1 Sync Notes
j edited this page 2023-06-12 14:17:39 +02:00

1433h Started

Start-Service W32Time
w32tm /resync
  • MacOS resync command: sudo sntp -sS time.apple.com
  • Use platform.system() to figure out whether it's Windows or MacOS, and use subprocess to run the NTP sync command so the whole computer has accurate time. Make sure to check the return code (0 = success, not zero = failure)
  • Although subprocess can give you the return code directly, it's helpful to know that it's available in the shell/powershell as $? on MacOS/Linux, and $LASTEXITCODE in powershell.
  • TODO @j figure out how to get systemd running in the container 1515h: Ended