From edb4ca45ad0a001ce6a22d252ad5d1513f1dc94e Mon Sep 17 00:00:00 2001 From: drf5n Date: Sat, 8 Mar 2025 20:35:31 -0500 Subject: [PATCH] Update TimeSerial.ino to suggest date +T%s%n I suggest the Linux command should be: ``` date +T%s%n ``` The `date +T%s\n` suggestion produces a literal \n while the Linux date command uses a %n to deliver a newline: ``` %m month (01..12) %M minute (00..59) %n a newline %N nanoseconds (000000000..999999999) %p locale's equivalent of either AM or PM; blank if not known ``` --- examples/TimeSerial/TimeSerial.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/TimeSerial/TimeSerial.ino b/examples/TimeSerial/TimeSerial.ino index 07e609f..82081eb 100644 --- a/examples/TimeSerial/TimeSerial.ino +++ b/examples/TimeSerial/TimeSerial.ino @@ -7,7 +7,7 @@ T1357041600 * * A Processing example sketch to automatically send the messages is included in the download - * On Linux, you can use "date +T%s\n > /dev/ttyACM0" (UTC time zone) + * On Linux, you can use "date +T%s%n > /dev/ttyACM0" (UTC time zone) */ #include