How to get a system's current timezone #685
-
I'm going to use the API to download some records from our systems, whose timestamps will always be in those systems' local timezone, and they could be anywhere in the world. I'll want to adjust each timestamp to GMT before processing them with other code. Is there a way to determine the timezone a host is in at the time of an API query, so that I can make that adjustment? Alternately, If there isn't a timezone property available via the API, is there a timestamp available somewhere that will be the system's current local time, so I could calculate the timezone manually? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This detail is not returned as part of a Our sample located here will execute a command across a batch of hosts. (This example does not demonstrate queueing.) Something along the lines of: python3 bulk_execute.py -k API_KEY_HERE -s API_SECRET_HERE -f HOSTNAME_SEARCH_STRING -c date |
Beta Was this translation helpful? Give feedback.
This detail is not returned as part of a
GetDeviceDetails
call, but you could grab it from RTR if you're wanting to use the API.Our sample located here will execute a command across a batch of hosts. (This example does not demonstrate queueing.)
Something along the lines of: