Play with timezones

play with timezones in Warp 10

Warp 10™ works with UTC time for data points, but, you can easily convert UTC times in your timezone.

The key feature is to use TSELEMENTS, ->TSELEMENTS, TSELEMENTS-> and ISO8601.

Time in Warp 10™ are LONG values expressed in a defined time unit (micro seconds by default, but, you can change that in the Warp 10™ configuration file).

For example, the NOW function, returns the current UTC time expressed in time unit.

NOW NOW ISO8601

Now, we can convert the current time to TSELEMENTS.

NOW ->TSELEMENTS

If you want to convert the timezone, you can pass the standard timezone name to ->TSELEMENTS:

NOW "America/Los_Angeles" ->TSELEMENTS TSELEMENTS-> ISO8601 NOW "Asia/Rangoon" ->TSELEMENTS TSELEMENTS-> ISO8601

And now, we switch from a timezone to another:

NOW "America/Los_Angeles" ->TSELEMENTS "Asia/Rangoon" TSELEMENTS-> ISO8601

Here is the list of timezone names.

Share