Skip to content

Passing date on shell format #4756

Answered by sampsyo
JOJ0 asked this question in Q&A
Apr 16, 2023 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Hi! While I know linking to the source code is an indication that things could be documented better, here we go. The dates get parsed here:

beets/beets/library.py

Lines 159 to 160 in d05c34e

time.strptime(string,
beets.config['time_format'].as_str())

So the format used to parse dates is actually configurable. Here's the default:

time_format: '%Y-%m-%d %H:%M:%S'

So if you're interested in dropping the time part, you might consider changing that config option.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@JOJ0
Comment options

JOJ0 Apr 16, 2023
Maintainer Author

@arsaboo
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by JOJ0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants