You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/10/25 12:59:43 UTC

[GitHub] [incubator-nuttx] midokura-xavi92 commented on a diff in pull request #7424: Add %T and %R conversion specifiers to strftime(3)

midokura-xavi92 commented on code in PR #7424:
URL: https://github.com/apache/incubator-nuttx/pull/7424#discussion_r1004455480


##########
libs/libc/time/lib_strftime.c:
##########
@@ -368,6 +368,15 @@ size_t strftime(FAR char *s, size_t max, FAR const char *format,
              }
              break;
 
+            /* %R: Shortcut for %H:%M. */
+
+           case 'R':
+             {
+               len = snprintf(dest, chleft, "%02d:%02d",
+                tm->tm_hour, tm->tm_min);

Review Comment:
   Thanks, I have just rebased the branch according to your suggestions.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org