# Get Snowflake Timestamp

> Convert a Discord snowflake ID into a creation date and time.

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

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `snowflake_id` | yes | Snowflake ID to decode. | e.g. `"123456789012345678"` |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `snowflake_timestamp_unix` | Creation time in Unix seconds. | e.g. `"1700000000"` |
| `snowflake_timestamp_unix_milli` | Creation time in Unix milliseconds. | e.g. `"1700000000000"` |
| `snowflake_date_year` | Creation year. | e.g. `"2025"` |
| `snowflake_date_month` | Creation month number. | e.g. `"12"` |
| `snowflake_date_month_name` | Creation month name. | e.g. `"December"` |
| `snowflake_date_day_of_week` | Creation day of week (0=Sunday). | e.g. `"1"` |
| `snowflake_date_day_of_month` | Creation day of month. | e.g. `"10"` |
| `snowflake_date_day_name` | Creation weekday name. | e.g. `"Wednesday"` |
| `snowflake_date_mm_dd_yyyy` | Creation date formatted as MM/DD/YYYY. | e.g. `"12/10/2025"` |
| `snowflake_date_dd_mm_yyyy` | Creation date formatted as DD/MM/YYYY. | e.g. `"10/12/2025"` |
| `snowflake_time_hours` | Creation hour (24h). | e.g. `"15"` |
| `snowflake_time_minutes` | Creation minute. | e.g. `"04"` |
| `snowflake_time_seconds` | Creation second. | e.g. `"05"` |
| `snowflake_time_milliseconds` | Creation millisecond. | e.g. `"123"` |
| `snowflake_time_hh_mm_ss` | Creation time formatted as HH:MM:SS. | e.g. `"15:04:05"` |
| `snowflake_time_hh_mm` | Creation time formatted as HH:MM. | e.g. `"15:04"` |
| `snowflake_time_relative` | Human-readable relative creation time. | e.g. `"a few seconds ago"` |

**Example**

```go
snowflakeTimestamp := get_snowflake_timestamp(Args{snowflake_id: "123456789012345678"})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Snowflake Timestamp (Unix): " + snowflakeTimestamp.snowflake_timestamp_unix,
})
```