Get Snowflake Timestamp

BlockTime

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

Inputs

Snowflake IDRequired

Snowflake ID to decode.

Example: 123456789012345678

Outputs

Snowflake Timestamp (Unix)

Creation time in Unix seconds.

Example: 1700000000

Snowflake Timestamp (Unix Milli)

Creation time in Unix milliseconds.

Example: 1700000000000

Snowflake Date (Year)

Creation year.

Example: 2025

Snowflake Date (Month)

Creation month number.

Example: 12

Snowflake Date (Month Name)

Creation month name.

Example: December

Snowflake Date (Day of Week)

Creation day of week (0=Sunday).

Example: 1

Snowflake Date (Day of Month)

Creation day of month.

Example: 10

Snowflake Date (Day Name)

Creation weekday name.

Example: Wednesday

Snowflake Date (MM/DD/YYYY)

Creation date formatted as MM/DD/YYYY.

Example: 12/10/2025

Snowflake Date (DD/MM/YYYY)

Creation date formatted as DD/MM/YYYY.

Example: 10/12/2025

Snowflake Time (Hours)

Creation hour (24h).

Example: 15

Snowflake Time (Minutes)

Creation minute.

Example: 04

Snowflake Time (Seconds)

Creation second.

Example: 05

Snowflake Time (Milliseconds)

Creation millisecond.

Example: 123

Snowflake Time (HH:MM:SS)

Creation time formatted as HH:MM:SS.

Example: 15:04:05

Snowflake Time (HH:MM)

Creation time formatted as HH:MM.

Example: 15:04

Snowflake Time (Relative)

Human-readable relative creation time.

Example: a few seconds ago

Build a bot using blocks like Get Snowflake Timestamp

Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.

Advanced Documentation

This documentation can be useful when using code mode. View as Markdown

ID: get_snowflake_timestamp

Inputs

FieldInventScript nameValue
Snowflake IDsnowflake_ide.g. "123456789012345678"

Outputs

FieldInventScript nameValue
Snowflake Timestamp (Unix)snowflake_timestamp_unixe.g. "1700000000"
Snowflake Timestamp (Unix Milli)snowflake_timestamp_unix_millie.g. "1700000000000"
Snowflake Date (Year)snowflake_date_yeare.g. "2025"
Snowflake Date (Month)snowflake_date_monthe.g. "12"
Snowflake Date (Month Name)snowflake_date_month_namee.g. "December"
Snowflake Date (Day of Week)snowflake_date_day_of_weeke.g. "1"
Snowflake Date (Day of Month)snowflake_date_day_of_monthe.g. "10"
Snowflake Date (Day Name)snowflake_date_day_namee.g. "Wednesday"
Snowflake Date (MM/DD/YYYY)snowflake_date_mm_dd_yyyye.g. "12/10/2025"
Snowflake Date (DD/MM/YYYY)snowflake_date_dd_mm_yyyye.g. "10/12/2025"
Snowflake Time (Hours)snowflake_time_hourse.g. "15"
Snowflake Time (Minutes)snowflake_time_minutese.g. "04"
Snowflake Time (Seconds)snowflake_time_secondse.g. "05"
Snowflake Time (Milliseconds)snowflake_time_millisecondse.g. "123"
Snowflake Time (HH:MM:SS)snowflake_time_hh_mm_sse.g. "15:04:05"
Snowflake Time (HH:MM)snowflake_time_hh_mme.g. "15:04"
Snowflake Time (Relative)snowflake_time_relativee.g. "a few seconds ago"

Example InventScript

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,
})

More time blocks