$left » History » Version 4
Per Amundsen, 08/11/2015 09:44 AM
1 | 1 | Per Amundsen | _Added in 1.8.10_ |
---|---|---|---|
2 | |||
3 | *$left* |
||
4 | |||
5 | Returns duration left of the currently playing song in XX:XX format. |
||
6 | |||
7 | _Only works if Media Player is set to iTunes/MediaMonkey/Winamp and proper plugins are installed._ |
||
8 | 2 | Per Amundsen | |
9 | _Added in 1.9.0_ |
||
10 | |||
11 | *$left(text,N)* |
||
12 | |||
13 | Returns the N left characters of text. |
||
14 | |||
15 | *Parameters* |
||
16 | |||
17 | text - Text to substring. |
||
18 | N - The Nth characters to substring by. |
||
19 | 3 | Per Amundsen | |
20 | *Example* |
||
21 | |||
22 | <pre> |
||
23 | ; Get the left 5 characters from 'Hello World'. |
||
24 | //echo -ag $left(Hello World,5) |
||
25 | </pre> |