Skip to content

multiple format strings in clock.format #2538

Answered by mbme
genevieve-me asked this question in Q&A
Discussion options

You must be logged in to vote

hey @genevieve-me and others who'll need it

you can use positional arguments to have multiple format strings:

"clock": { "format": "{0:%H:%M:%S} {0:%F}" }

Notice the 0 before the first semicolon in format string.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@not-programmer98
Comment options

@mbme
Comment options

Answer selected by genevieve-me
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants