How do I set the hardware clock with Python on embedded Linux systems?
Probably no easy way other than doing an os.system() call.
import os
os.system('hwclock --set %s' % date_str)
or using the 'date' command
import os
os.system('date -s %s' % date_str)
or if you are dying to do some c coding, wrapping the system calls with swig... but I think that would be more work than its worth.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With