In reply to:

And as for it being 2 hours behind that is because the player software has its own timezone setting that this program can't read. The only way around this that I see is to set your timezone as "Universal" or "UTC" in the empeg player app and then set your clock accordinly.


I wouldn't do that, because you'll lose DST switching and you'll also lose easy country adjustment when you travel abroad. Instead, set the TZ environment variable in the shell you're running your code from (and export it, of course). (I assume tts-clock uses localtime(), not gmtime()).
_________________________
Toby Speight
030103016 (80GB Mk2a, blue)
030102806 (0GB Mk2a, blue)