My current config:
-Recently played tracks are marked by a light blue double note. Later it changes to a darker color, and the appearance goes: Double note->Single note->line->dot->nothing[a href="index.php?act=findpost&pid=269469"][{POST_SNAPBACK}][/a]
What is the code for comparing system time to last played time?
[a href="index.php?act=findpost&pid=269743"][{POST_SNAPBACK}][/a]
My setup:
Play Count plugin (foo_playcount):
Tag: PLAY_DATE
Format: %D%M%y
Tag: JULIAN_DATE
Format: %j
Columns UI:
In globals:recently=$if(%PLAY_DATE%,
$if($strcmp(%PLAY_DATE%,$num(%_system_day%,2)$num(%_system_month%,2)$right(%_system_year%,2)),
0
,
$if(%JULIAN_DATE%,
$puts(year,$sub(%_system_year%,1))
$puts(hour,%_system_hour%)
$puts(day,$sub(%_system_day%,$ifgreater($get(hour),11,0,1)))
$puts(monthdays,$select(%_system_month%,0,31,59,90,120,151,181,212,243,273,304,334))
$puts(yeardays,$ifequal($mod(%_system_year%,4),0,$ifgreater(%_system_month%,2,$add($get(monthdays),1),$get(monthdays)),$get(monthdays)))
$sub($add($div($get(year),4),$mul($get(year),365),$get(yeardays),$get(day),1721410),%JULIAN_DATE%)
)))
Column: $if(%_recently%,
$select($min($add(%_recently%,1),5),
%_c_title%|%_c_title%'♫',
'♪',
' ',
' ∙',
)
)
As you can see, it uses a combination of julian date and the current date in the format ddmmyy (change the second line in the globals formatting if you use another format). In Columns UI, the julian date is calculated from the current date. Thanks to musicmusic for that part. The reason I use both, is that the julian date alone changed at noon (light blue double note to darker blue single note). So, I found that keeping the double note for all tracks played at the current date, was more along the lines of how I wanted this to work in the first place.
Edit: clarification