iso_to_unix_timestamp
Convert ISO 8601 datetime strings to UNIX timestamps in milliseconds (UTC) for use in SentinelOne API queries. Automatically handles timezone conversion.
Instructions
Convert an ISO 8601 datetime string to a UNIX timestamp in milliseconds (UTC).
This tool accepts datetime strings in ISO 8601 format and converts them to UNIX timestamps (milliseconds since epoch: January 1, 1970 00:00:00 UTC). This is essential for datetime filter queries in Purple Alert, Vulnerability, Misconfiguration, and Inventory searches.
IMPORTANT: You should provide datetime inputs in the user's preferred timezone. This tool will automatically convert them to UTC timestamps for use in API queries. For example, if the user asks for "October 30, 2024 at 8 AM Eastern Time", you should submit "2024-10-30T08:00:00-04:00" (not convert it yourself to UTC).
Args: iso_datetime (str): An ISO 8601 formatted datetime string. Examples: - "2025-10-30T12:00:00Z" (UTC with 'Z' suffix) - "2025-10-30T12:00:00+00:00" (UTC with explicit offset) - "2025-10-30T08:00:00-04:00" (Eastern Time with offset) - "2025-10-30T17:00:00+05:00" (IST/Pakistan Time with offset) - "2025-10-30T12:00:00" (no timezone - treated as UTC)
Returns: str: The UNIX timestamp in milliseconds (UTC) as a JSON number string. Example: "1761825600000"
Common Use Cases: - Converting user-friendly datetime inputs to UNIX timestamps for API queries - Handling datetimes across different time zones automatically - Preparing datetime filters for Alert, Vulnerability, Misconfiguration, and Inventory searches
Examples: Input: "2025-10-30T12:00:00Z" (noon UTC) Output: "1761825600000"
Input: "2025-10-30T08:00:00-04:00" (8 AM EDT = noon UTC)
Output: "1761825600000"
Input: "2025-10-30T17:00:00+05:00" (5 PM PKT = noon UTC)
Output: "1761825600000"Raises: ValueError: If the input string is not a valid ISO 8601 datetime format.
Notes: - All timestamps are returned in milliseconds (not seconds or nanoseconds) - All timestamps represent UTC time regardless of input timezone - If no timezone is specified in input, UTC is assumed - The tool handles timezone conversion automatically - provide times in the user's local timezone
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iso_datetime | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |