$left » History » Version 5
  Per Amundsen, 08/11/2015 09:45 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 | 5 | Per Amundsen | ----------------------------------------------------------------------------- | 
| 10 | |||
| 11 | 2 | Per Amundsen | _Added in 1.9.0_ | 
| 12 | |||
| 13 | *$left(text,N)* | ||
| 14 | |||
| 15 | Returns the N left characters of text. | ||
| 16 | |||
| 17 | *Parameters* | ||
| 18 | |||
| 19 | text - Text to substring. | ||
| 20 | N - The Nth characters to substring by. | ||
| 21 | 3 | Per Amundsen | |
| 22 | *Example* | ||
| 23 | |||
| 24 | <pre> | ||
| 25 | ; Get the left 5 characters from 'Hello World'. | ||
| 26 | //echo -ag $left(Hello World,5) | ||
| 27 | </pre> |