Details
| ID | ConvertDatetoUTC |
|---|---|
| Language | python |
| From Version | 5.0.0 |
| Docker Image | demisto/python3:3.12.13.10404775 |
| Tags | Utility |
README
Converts a date from a different timezone to UTC timezone
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | Utility |
Inputs
| Argument Name | Description |
|---|---|
| date | Date to convert to UTC |
| date_format | Default is “%Y-%m-%dT%H:%M:%S” |
| timezone | Timezone accepted by pytz. Default is America/Los_Angeles |
Outputs
| Path | Description | Type |
|---|---|---|
| UTCDate | Converted Date in UTC timezone | Unknown |
| UTCDateEpoch | Date in Epoch (Unix time) | Unknown |
commonfields: id: ConvertDatetoUTC version: -1 name: ConvertDatetoUTC script: '' type: python tags: - Utility comment: Converts a date from a different timezone to UTC timezone. enabled: true args: - name: date required: true description: Date to convert to UTC. - name: date_format description: Default is "%Y-%m-%dT%H:%M:%S". defaultValue: '%Y-%m-%dT%H:%M:%S' - name: timezone default: true description: 'Timezone accepted by pytz. Default is America/Los_Angeles.' defaultValue: America/Los_Angeles outputs: - contextPath: UTCDate description: Converted Date in UTC timezone. type: Unknown - contextPath: UTCDateEpoch description: Date in Epoch (Unix time). type: Unknown scripttarget: 0 subtype: python3 dockerimage: demisto/python3:3.12.13.10404775 runas: DBotWeakRole fromversion: 5.0.0 tests: - No tests (auto formatted)