# Parse Unix Time

> Parse a Unix timestamp into a human-readable date and time.

- ID: `parse_unix_time`
- Type: Block
- Category: [Time](https://inventor.bot/docs/reference/blocks/time.md)

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `unix_time` | yes | Unix timestamp to parse. | e.g. `"1700000000"` |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `parsed_date_year` | Year component. | e.g. `"2025"` |
| `parsed_date_month` | Month component. | e.g. `"12"` |
| `parsed_date_month_name` | Month name. | e.g. `"December"` |
| `parsed_date_day_of_week` | Day of week (0=Sunday). | e.g. `"1"` |
| `parsed_date_day_of_month` | Day of month. | e.g. `"10"` |
| `parsed_date_day_name` | Weekday name. | e.g. `"Wednesday"` |
| `parsed_date_mm_dd_yyyy` | Date formatted as MM/DD/YYYY. | e.g. `"12/10/2025"` |
| `parsed_date_dd_mm_yyyy` | Date formatted as DD/MM/YYYY. | e.g. `"10/12/2025"` |
| `parsed_date_yyyy_mm_dd_slash` | Date formatted as YYYY/MM/DD. | e.g. `"2025/12/10"` |
| `parsed_date_yyyy_mm_dd` | Date formatted as YYYY-MM-DD (ISO 8601). | e.g. `"2025-12-10"` |
| `parsed_date_mm_dd_yyyy_dash` | Date formatted as MM-DD-YYYY. | e.g. `"12-10-2025"` |
| `parsed_date_dd_mm_yyyy_dash` | Date formatted as DD-MM-YYYY. | e.g. `"10-12-2025"` |
| `parsed_datetime_iso8601` | Full date and time formatted as YYYY-MM-DDTHH:MM:SSZ. | e.g. `"2025-12-10T15:04:05Z"` |
| `parsed_date_day_of_year` | Day of the year (1-366). | e.g. `"344"` |
| `parsed_time_hours` | Hour component (24h). | e.g. `"15"` |
| `parsed_time_minutes` | Minute component. | e.g. `"04"` |
| `parsed_time_seconds` | Second component. | e.g. `"05"` |
| `parsed_time_milliseconds` | Millisecond component. | e.g. `"123"` |
| `parsed_time_hh_mm_ss` | Time formatted as HH:MM:SS. | e.g. `"15:04:05"` |
| `parsed_time_hh_mm` | Time formatted as HH:MM. | e.g. `"15:04"` |
| `parsed_time_relative` | Human-readable relative time. | e.g. `"2 hours ago"` |

**Example**

```go
parseUnixTime := parse_unix_time(Args{unix_time: "1700000000"})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Parsed Date (Year): " + parseUnixTime.parsed_date_year,
})
```