Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format of time in stats -> db_update #893

Closed
caschoff opened this issue Jun 4, 2020 · 0 comments
Closed

Format of time in stats -> db_update #893

caschoff opened this issue Jun 4, 2020 · 0 comments

Comments

@caschoff
Copy link

caschoff commented Jun 4, 2020

Dear all,

the protocol says, the value of db_update in mpd stats ist a Unix time. But it seams not work correctly or I am missing something. As an example, mpc shows:

iMac-2:~ caschoff$ mpc stats
Artists:   3652
Albums:    1814
Songs:    34897

Play Time:    0 days, 0:00:00
Uptime:       0 days, 5:21:18
DB Updated:   Sun May 31 17:08:09 2020
DB Play Time: 104 days, 1:28:00
iMac-2:~ caschoff$ mpc update
Updating DB (#2) ...
volume: 43%   repeat: off   random: off   single: off   consume: off
iMac-2:~ caschoff$ mpc status
volume: 43%   repeat: off   random: off   single: off   consume: off
iMac-2:~ caschoff$ mpc stats
Artists:   3652
Albums:    1814
Songs:    34897

Play Time:    0 days, 0:00:00
Uptime:       0 days, 5:26:20
DB Updated:   Sun May 31 17:08:09 2020
DB Play Time: 104 days, 1:28:00
iMac-2:~ caschoff$ date
Do  4 Jun 2020 15:43:48 CEST
iMac-2:~ caschoff$ 

So, I updated the db today, but mpc says "Sun May 31 17:08:09 2020".

So I'm wondering, what the value of db_update is. Is it milliseconds since 1970?

Regards,
Christian

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

No branches or pull requests

1 participant