10456 questions

12463 answers

19388 comments

21900 members

+1 vote
44 views 1 comments
by
Is there any way to manually update the time on the RUT955?

I have added an RTC via USB and have a shell script that can request the time from the RTC and print it to the console.

I need some kind of way to pass the time to the device to update its clock manually, i can only see a way to update automatically from NTP etc.

1 Answer

+1 vote
by

Hello,

Use date -s your_timestamp to set the time from your shell script : date -s $(/path/to/shell-script.sh)

The time formats recognized are:

@seconds_since_1970
	hh:mm[:ss]
	[YYYY.]MM.DD-hh:mm[:ss]
	YYYY-MM-DD hh:mm[:ss]
	[[[[[YY]YY]MM]DD]hh]mm[.ss]

Regards,

Best answer
by

Thanks very much smiley