getunix
Private
Content
35 lines{=():}
{=(COMMENT):Shortners and aliases}
{=(u):{unix}}
{=(isAgo):{in(ago):{args}}}
{=(operation):{if({isAgo}==false):+|-}}
{=(help):> This command accepts the following as parameters: m for minutes, h for hours, d for days, w for weeks, and y for years. The order of these does not matter. Note, months are not supported}
{{{if({args(1)}==help):blacklist({help}):{server(id)}}}}
{=(TimeString):{lower:{if({isAgo}==true):{replace(ago,):{args}}|{args}}}}
{=(COMMENT):Convert arguments to seconds}
{=(COMMENT):accepted arguments include m, h, d, w, y.}
{=(time):{replace(m,*60):{TimeString}}}
{=(time):{replace(h,*3600):{time}}}
{=(time):{replace(d,*86400):{time}}}
{=(time):{replace(w,*604800):{time}}}
{=(time):{replace(y,*31536000):{time}}}
{=(COMMENT):I only know 25 letters of the alphabet... I still don't know y}
{=(TimeCalcString):{join(+):{time}}}
{=(secs):{m:{TimeCalcString}}}
{=(COMMENT):Time Management}
{=(nu):{m:trunc({u}{operation}{m:{TimeCalcString}})}}
{if({args(1)}!=help):Copy the message above to get the Unix timestamp that you require!|}
{c:echo `{nu}`}
{=(ran.colour):{cycle({m:trunc({uses}-1)}):5BCEFA,F5A9B8,FFFFFF,F5A9B8}}
{embed(color):#{ran.colour}}
{=(COMMENT):It's not actually random, it's a trans flag but it cycles 4 colours so that there's not an extra blue, also did i spend 30 mins trying to troubleshoot the fact that i wrote (colour) instead of (color) in the embed block... yes, yes i did}Embed
1 line{"color": 2105893, "title": "Here are the Unix Timestamps you requested!", "author": {"name": "Unix Timestamp Generator", "icon_url": "{server(icon)}"}, "fields": [{"name": "Short Time", "value": "<t:{nu}:t>\n\\<t:{nu}:t>", "inline": true}, {"name": "Long Time", "value": "<t:{nu}:T>\n\\<t:{nu}:T>", "inline": true}, {"name": "Short Date", "value": "<t:{nu}:d>\n\\<t:{nu}:d>", "inline": true}, {"name": "Long Date", "value": "<t:{nu}:D>\n\\<t:{nu}:D>", "inline": true}, {"name": "Short Date & Time", "value": "<t:{nu}:f>\n\\<t:{nu}:f>", "inline": true}, {"name": "Long Date & Time", "value": "<t:{nu}:F>\n\\<t:{nu}:F>", "inline": true}, {"name": "Relative Time", "value": "<t:{nu}:R>\n\\<t:{nu}:R>", "inline": true}], "footer": {"text": "Executed by: {user(name)}", "icon_url": "{user(avatar)}"}, "description": "There are seven different formatting options that discord offers for Unix Timestamps. These include: Short & Long Time, Short & Long Date, Short Date & Time, Long Date & Time, and Relative Time.\n\nRelative time will always show the Unix Timestamp relative to the current one, this can be extremely useful when used for a count down!\n\nAll times display in the users local time zone."}Raw JSON
{
"id": 2441179,
"created_at": "2025-11-12T06:41:07.000Z",
"tag_name": "getunix",
"nsfw": false,
"owner_id": "928075402088448040",
"uses": 3,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "",
"hidden": false,
"guild_id": "902144855877255199",
"sharer": "976197706718531674",
"content": "{=():}\n{=(COMMENT):Shortners and aliases}\n{=(u):{unix}}\n{=(isAgo):{in(ago):{args}}}\n{=(operation):{if({isAgo}==false):+|-}}\n{=(help):> This command accepts the following as parameters: m for minutes, h for hours, d for days, w for weeks, and y for years. The order of these does not matter. Note, months are not supported}\n{{{if({args(1)}==help):blacklist({help}):{server(id)}}}}\n\n{=(TimeString):{lower:{if({isAgo}==true):{replace(ago,):{args}}|{args}}}}\n\n{=(COMMENT):Convert arguments to seconds}\n{=(COMMENT):accepted arguments include m, h, d, w, y.}\n{=(time):{replace(m,*60):{TimeString}}}\n{=(time):{replace(h,*3600):{time}}}\n{=(time):{replace(d,*86400):{time}}}\n{=(time):{replace(w,*604800):{time}}}\n{=(time):{replace(y,*31536000):{time}}}\n\n{=(COMMENT):I only know 25 letters of the alphabet... I still don't know y}\n\n\n{=(TimeCalcString):{join(+):{time}}}\n\n{=(secs):{m:{TimeCalcString}}}\n\n{=(COMMENT):Time Management}\n\n{=(nu):{m:trunc({u}{operation}{m:{TimeCalcString}})}}\n\n{if({args(1)}!=help):Copy the message above to get the Unix timestamp that you require!|}\n\n{c:echo `{nu}`}\n{=(ran.colour):{cycle({m:trunc({uses}-1)}):5BCEFA,F5A9B8,FFFFFF,F5A9B8}}\n{embed(color):#{ran.colour}}\n{=(COMMENT):It's not actually random, it's a trans flag but it cycles 4 colours so that there's not an extra blue, also did i spend 30 mins trying to troubleshoot the fact that i wrote (colour) instead of (color) in the embed block... yes, yes i did}",
"embed": "{\"color\": 2105893, \"title\": \"Here are the Unix Timestamps you requested!\", \"author\": {\"name\": \"Unix Timestamp Generator\", \"icon_url\": \"{server(icon)}\"}, \"fields\": [{\"name\": \"Short Time\", \"value\": \"<t:{nu}:t>\\n\\\\<t:{nu}:t>\", \"inline\": true}, {\"name\": \"Long Time\", \"value\": \"<t:{nu}:T>\\n\\\\<t:{nu}:T>\", \"inline\": true}, {\"name\": \"Short Date\", \"value\": \"<t:{nu}:d>\\n\\\\<t:{nu}:d>\", \"inline\": true}, {\"name\": \"Long Date\", \"value\": \"<t:{nu}:D>\\n\\\\<t:{nu}:D>\", \"inline\": true}, {\"name\": \"Short Date & Time\", \"value\": \"<t:{nu}:f>\\n\\\\<t:{nu}:f>\", \"inline\": true}, {\"name\": \"Long Date & Time\", \"value\": \"<t:{nu}:F>\\n\\\\<t:{nu}:F>\", \"inline\": true}, {\"name\": \"Relative Time\", \"value\": \"<t:{nu}:R>\\n\\\\<t:{nu}:R>\", \"inline\": true}], \"footer\": {\"text\": \"Executed by: {user(name)}\", \"icon_url\": \"{user(avatar)}\"}, \"description\": \"There are seven different formatting options that discord offers for Unix Timestamps. These include: Short & Long Time, Short & Long Date, Short Date & Time, Long Date & Time, and Relative Time.\\n\\nRelative time will always show the Unix Timestamp relative to the current one, this can be extremely useful when used for a count down!\\n\\nAll times display in the users local time zone.\"}",
"last_fetched": "2026-10-21T14:34:44.361Z"
}