### 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: Update to playlist generator syntax in 0.9 beta 7 (Read 10460 times)
0 Members and 1 Guest are viewing this topic.

## Update to playlist generator syntax in 0.9 beta 7

##### 2005-08-28 21:26:16
Starting with 0.9 beta 7, the LESS, GREATER and EQUAL predicates can be used with integers and times. The accepted formats are
• [sign] digits
• [sign] digits ":" digit digit
• [sign] digits ":" digit digit ":" digit digit
where [sign] is optional and either "+" or "-", digit is a single decimal digit (0-9), and digits is one or more decimal digits. All three forms are converted to an integer before doing the comparison. The value is determined as follows (neglecting sign):
• xxx -> xxx
• xxx:yy -> (xxx * 60) + yy
• xxx:yy:zz -> (xxx * 3600) + (yy * 60) + zz
If sign is "-" the value is negated.

If %_length% is less than one day, the following queries are equivalent:
Code: [Select]
`%_length_seconds% LESS 300%_length_seconds% LESS 5:00%_length% LESS 300%_length% LESS 5:00`

## Update to playlist generator syntax in 0.9 beta 7

##### Reply #1 – 2005-08-29 08:39:17
Think the 3rd one should be 'xxx:yy:zz -> xxx * 3600 + yy * 60 + zz'.
f to c to f to c

## Update to playlist generator syntax in 0.9 beta 7

##### Reply #2 – 2005-08-29 09:18:49
Quote
Think the 3rd one should be 'xxx:yy:zz -> xxx * 3600 + yy * 60 + zz'.[a href="index.php?act=findpost&pid=323424"][{POST_SNAPBACK}][/a]

Indeed. I fixed that in the original post.