Skip to content

Update TimeSerial.ino to suggest date +T%s%n#188

Open
drf5n wants to merge 1 commit into
PaulStoffregen:masterfrom
drf5n:patch-1
Open

Update TimeSerial.ino to suggest date +T%s%n#188
drf5n wants to merge 1 commit into
PaulStoffregen:masterfrom
drf5n:patch-1

Conversation

@drf5n

@drf5n drf5n commented Mar 9, 2025

Copy link
Copy Markdown

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

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
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant