Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: need help with date calculation (Read 2522 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

need help with date calculation

Hi,

I'm trying to get an automatic rating equation running in foobar. It takes into account play count, skipped tracks and song length (i.e more likely to skip a long song than a short one) and now I'm working on the date part, I've hit a problem:

Is there a function that can translate a date to a value. I just need to get some kind of weighting from the differences between various date fields.

eg. does anyone know how to do formulate:
%last_played% minus %date_added%
so that it yields a number (i.e. the number of days, or seconds or whatever between the fields)

I've checked the wiki and I'm not getting anywhere.
Any help greatly appreciated.

Thanks
C.
PC = TAK + LossyWAV  ::  Portable = Opus (130)