Local time command

Does the api have a variable to pull local time for a specified timezone?
I’ve searched far and wide for an api that returns just the timestamp in json, but I haven’t found any reliable solutions.

If this currently isn’t available, would it be possible to add something that takes the server time, applies an offset for the timezone, then returns the result?

I’ve been looking for this as well. Hopefully someone can help!

Check out the Nightbot docs on the time variable: https://docs.nightbot.tv/commands/variables/time

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