Get UUIDv7 Creation Time

BlockStrings

Get the creation time of a UUIDv7.

Inputs

UUIDRequired

UUIDv7 to decode.

Example: 018f67c2-1c20-79a2-8000-000000000000

Outputs

Unix Timestamp

Creation time in Unix seconds.

Example: 1700000000

Unix Milliseconds

Creation time in Unix milliseconds.

Example: 1700000000000

Date (Year)

Year the UUID was created.

Example: 2025

Date (Month)

Month number of creation.

Example: 12

Date (Month Name)

Month name of creation.

Example: December

Date (Day of Week)

Day of week of creation (0=Sunday).

Example: 1

Date (Day of Month)

Day of month of creation.

Example: 10

Date (Day Name)

Weekday name of creation.

Example: Wednesday

Date (MM/DD/YYYY)

Creation date formatted as MM/DD/YYYY.

Example: 12/10/2025

Date (DD/MM/YYYY)

Creation date formatted as DD/MM/YYYY.

Example: 10/12/2025

Time (Hours)

Creation hour (24h).

Example: 15

Time (Minutes)

Creation minute.

Example: 04

Time (Seconds)

Creation second.

Example: 05

Time (Milliseconds)

Creation millisecond.

Example: 123

Time (HH:MM:SS)

Creation time formatted as HH:MM:SS.

Example: 15:04:05

Time (HH:MM)

Creation time formatted as HH:MM.

Example: 15:04

Time (Relative)

Human-readable relative creation time.

Example: a minute ago

Build a bot using blocks like Get UUIDv7 Creation Time

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: decode_uuid_v7_time

Inputs

FieldInventScript nameValue
UUIDuuide.g. "018f67c2-1c20-79a2-8000-000000000000"

Outputs

FieldInventScript nameValue
Unix Timestampunix_timestampe.g. "1700000000"
Unix Millisecondsunix_millisecondse.g. "1700000000000"
Date (Year)date_yeare.g. "2025"
Date (Month)date_monthe.g. "12"
Date (Month Name)date_month_namee.g. "December"
Date (Day of Week)date_day_of_weeke.g. "1"
Date (Day of Month)date_day_of_monthe.g. "10"
Date (Day Name)date_day_namee.g. "Wednesday"
Date (MM/DD/YYYY)date_mm_dd_yyyye.g. "12/10/2025"
Date (DD/MM/YYYY)date_dd_mm_yyyye.g. "10/12/2025"
Time (Hours)time_hourse.g. "15"
Time (Minutes)time_minutese.g. "04"
Time (Seconds)time_secondse.g. "05"
Time (Milliseconds)time_millisecondse.g. "123"
Time (HH:MM:SS)time_hh_mm_sse.g. "15:04:05"
Time (HH:MM)time_hh_mme.g. "15:04"
Time (Relative)time_relativee.g. "a minute ago"

Example InventScript

decodeUuidV7Time := decode_uuid_v7_time(Args{uuid: "018f67c2-1c20-79a2-8000-000000000000"})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Unix Timestamp: " + decodeUuidV7Time.unix_timestamp,
})

More strings blocks

String LengthGet the length of a string in characters and in bytes.String Split ListSplit a string into a list of strings with a delimiter.Split String IteratorIterate over a string separated by a delimiter.String Contains CountCount the number of times a substring appears in a string.String ReplaceReplace a substring with a new substring within a string.String to LowercaseConvert a string to lowercase.String to UppercaseConvert a string to uppercase.String Trim PrefixRemove a prefix from a string.String Trim SuffixRemove a suffix from a string.Truncate StringTruncate a string to a certain length.Base64 EncodeEncode a string to Base64.Base64 DecodeDecode a Base64 string.Format NumberFormat a number with commas.Generate UUIDv4Generate a UUIDv4 (fully-random).Generate UUIDv7Generate a UUIDv7 (time-based).Parse ColorParse a color string (name or hex code) into a hex string.URL Query EscapeEncode a string to be used as a URL parameter.URL Query UnescapeDecode a string used as a URL parameter.Bcrypt Hash StringApply a one-way hash to a string using bcrypt.Bcrypt Compare HashCompare a string to a bcrypt hash.Verify HMACVerify a message against an HMAC signature.MD5 HashGenerate an MD5 hash of a string.Sort Lines by Number Prefix or SuffixSort lines of text by the number at the beginning or end of each line.Truncate Split String ListSplit a string into groups of a certain number of characters.Truncate Split String IteratorIterate over a string by groups of a certain number of characters.Scramble StringScramble the order of characters in a string.Random String GeneratorGenerate a random string of a specified length using a chosen character set.Repeat StringRepeat a string a specified number of times.Reverse StringReverse the characters of a string.Reorder Comma Separated ListReorder the elements in a comma separated list.Intersection of Comma Separated ListsCompare two comma separated lists and find items exclusive to each list and items common to both.Remap StringRemap or replace values in a string using a set of original-to-replacement pairs.