Adding time zone to !uptime command

I’m working out the formula for adding timezone to the existing !uptime command, could someone tell me if I’m heading in the right direction:

!commands edit !uptime Stream uptime: $(twitch $(channel) “{{uptimeLength}}”) $(time America/Los_Angeles)

Firstly are the use of brackets correct and will it be correctly spaced?

Secondly will that command spit out: streamer has been streaming for time. The time in Los Angeles, California is time.

Or do I need to specifically add in the full stops in between formulas and ‘the time in Los Angeles, California is’

Thanks

I would recommend adding the command and trying it out. It will either work or will return an error, which allows you to then correct the mistake.

Worked it out thank you. The right formula was

!commands edit !uptime Stream uptime: $(twitch $(channel) “{{uptimeLength}}”). The time in Los Angeles, California is $(time America/Los_Angeles “hh:mm:ss”).

Translates to:

username has been streaming for time. The time in Los Angeles, California is time.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.