ConvertTimezoneFromUTC
Takes UTC and converts it to the specified timezone. Format must match the UTC date's format and output will be the same format. Can use in conjunction with ConvertDateToString.
python · Common Scripts
Details
| ID | ConvertTimezoneFromUTC |
|---|---|
| Language | python |
| From Version | 6.0.0 |
| Docker Image | demisto/python3:3.12.13.10404775 |
| Tags | transformer date |
README
Takes UTC and converts it to the specified timezone. Format must match the UTC date’s format and output will be the same format. Can use in conjunction with ConvertDateToString
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | transformer, date |
Inputs
| Argument Name | Description |
|---|---|
| value | Time in UTC in the format specified |
| format | Format that the input expects, and output will format to (i.e “%Y-%m-%d %H:%M:%S”) |
| timezone | Timezone to be converted to (i.e. ‘US/Eastern’, ‘Etc/Greenwich’, ‘Canada/Eastern’). Review documentation on http://pytz.sourceforge.net/#helpers for more available timezones . |
Outputs
There are no outputs for this script.
args: - default: true description: Time in UTC in the format specified. name: value required: true - defaultValue: '%Y-%m-%d %H:%M:%S' description: >- The format of the time to convert and the converted time. (i.e "%Y-%m-%d%H:%M:%S"). name: format - description: Timezone to be converted to (i.e. 'US/Eastern', 'Etc/Greenwich','Canada/Eastern'). Review documentation on http://pytz.sourceforge.net/#helpers for what timezones are available. name: timezone required: true comment: Takes UTC and converts it to the specified timezone. Format must match the UTC date's format and output will be the same format. Can use in conjunction with ConvertDateToString. commonfields: id: ConvertTimezoneFromUTC version: -1 contentitemexportablefields: contentitemfields: fromServerVersion: "" dockerimage: demisto/python3:3.12.13.10404775 enabled: true name: ConvertTimezoneFromUTC runas: DBotWeakRole script: '' scripttarget: 0 subtype: python3 tags: - transformer - date type: python fromversion: 6.0.0 tests: - No tests (auto formatted)