MPD icon indicating copy to clipboard operation
MPD copied to clipboard

Format of time in stats -> db_update

Open caschoff opened this issue 6 years ago • 0 comments

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

caschoff avatar Jun 04 '20 13:06 caschoff