dtu

Privateunrated

Content

24 lines
{=(TagName):dtu}
{=(prefix):!}

{=(joined):{join( ):{args}}}
{=(time):{if({joined(4)}!={joined}):{join():{joined(4+)}}:00|00:00:00}}
{=(month):{replace(january,1):{replace(february,2):{replace(march,3):{replace(april,4):{replace(may,5):{replace(june,6):{replace(july,7):{replace(august,8):{replace(september,9):{replace(october,10):{replace(november,11):{replace(december,12):{lower:{1}}}}}}}}}}}}}}}
{=(year):{if({joined(3)}=={joined}):{strf:%Y}|{joined(3)}}}

{=(date_string):{year}-{month}-{joined(2)}}
{=(input):{if(=={1}):{unix}|{and({m:sgn({1})}==1|{joined(2)}=={joined}):{1}|{date_string} {time}}}}
{=(snowflake):{strf({input}):%s}}

{=(noArgs):{if(!={args}):true|false}}
{=(hasHelp):{if({lower:{1}}==help):false|true}}
{=(isnum):{if({snowflake}=={m:trunc({snowflake}/1)}):true|false}}

{=(json.noArgs):{"url":"https://www.utctime.net/","fields":[{"name":"Output","value":"•f: <t:{snowflake}:f>\n•F: <t:{snowflake}:F>\n\n•t: <t:{snowflake}:t> \n•T: <t:{snowflake}:T> \n\n•d: <t:{snowflake}:d>\n•D: <t:{snowflake}:D> \n\n•R: <t:{snowflake}:R>\n","inline":true},{"name":"Format","value":"`<t:{snowflake}:f>`\n`<t:{snowflake}:F>`\n\n`<t:{snowflake}:t>`\n`<t:{snowflake}:T>`\n\n`<t:{snowflake}:d>`\n`<t:{snowflake}:D>`\n\n`<t:{snowflake}:R>`","inline":true}],"title":"UTC Datetime","description":"`{strf({snowflake}):%m/%d/%Y %H:%M:%S}`\n────────────────────────────────────","color":3092790}}
{=(json.help):{"title":"**Usage**","description":"```css\n{prefix}{TagName} [date_string] [time]\n\n{prefix}{TagName} september 13 2015 16:52```","color":3092790}}
{=(json.isNum):{"title":"Invalid input","description":"Your input doesn't follow the format `month day year [optional_time]` or isn't a valid unix timestamp.","color":16390425,"type":"rich"}}
{=(json.output):{json.noArgs}}
{=(JsonVars):json.noArgs json.help json.isNum json.output}
{=(json):{JsonVars({index(false):^ {noArgs} {hasHelp} {isnum} false})}}

{c:cembed {channel(id)} {{json}}}
Raw JSON
{
  "id": 1007483,
  "created_at": "2021-08-13T20:43:01.000Z",
  "tag_name": "dtu",
  "nsfw": false,
  "owner_id": "646441336152784954",
  "uses": 173,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "776901576086388797",
  "sharer": "646441336152784954",
  "content": "{=(TagName):dtu}\n{=(prefix):!}\n\n{=(joined):{join( ):{args}}}\n{=(time):{if({joined(4)}!={joined}):{join():{joined(4+)}}:00|00:00:00}}\n{=(month):{replace(january,1):{replace(february,2):{replace(march,3):{replace(april,4):{replace(may,5):{replace(june,6):{replace(july,7):{replace(august,8):{replace(september,9):{replace(october,10):{replace(november,11):{replace(december,12):{lower:{1}}}}}}}}}}}}}}}\n{=(year):{if({joined(3)}=={joined}):{strf:%Y}|{joined(3)}}}\n\n{=(date_string):{year}-{month}-{joined(2)}}\n{=(input):{if(=={1}):{unix}|{and({m:sgn({1})}==1|{joined(2)}=={joined}):{1}|{date_string} {time}}}}\n{=(snowflake):{strf({input}):%s}}\n\n{=(noArgs):{if(!={args}):true|false}}\n{=(hasHelp):{if({lower:{1}}==help):false|true}}\n{=(isnum):{if({snowflake}=={m:trunc({snowflake}/1)}):true|false}}\n\n{=(json.noArgs):{\"url\":\"https://www.utctime.net/\",\"fields\":[{\"name\":\"Output\",\"value\":\"•f: <t:{snowflake}:f>\\n•F: <t:{snowflake}:F>\\n\\n•t: <t:{snowflake}:t> \\n•T: <t:{snowflake}:T> \\n\\n•d: <t:{snowflake}:d>\\n•D: <t:{snowflake}:D> \\n\\n•R: <t:{snowflake}:R>\\n\",\"inline\":true},{\"name\":\"Format\",\"value\":\"`<t:{snowflake}:f>`\\n`<t:{snowflake}:F>`\\n\\n`<t:{snowflake}:t>`\\n`<t:{snowflake}:T>`\\n\\n`<t:{snowflake}:d>`\\n`<t:{snowflake}:D>`\\n\\n`<t:{snowflake}:R>`\",\"inline\":true}],\"title\":\"UTC Datetime\",\"description\":\"`{strf({snowflake}):%m/%d/%Y %H:%M:%S}`\\n────────────────────────────────────\",\"color\":3092790}}\n{=(json.help):{\"title\":\"**Usage**\",\"description\":\"```css\\n{prefix}{TagName} [date_string] [time]\\n\\n{prefix}{TagName} september 13 2015 16:52```\",\"color\":3092790}}\n{=(json.isNum):{\"title\":\"Invalid input\",\"description\":\"Your input doesn't follow the format `month day year [optional_time]` or isn't a valid unix timestamp.\",\"color\":16390425,\"type\":\"rich\"}}\n{=(json.output):{json.noArgs}}\n{=(JsonVars):json.noArgs json.help json.isNum json.output}\n{=(json):{JsonVars({index(false):^ {noArgs} {hasHelp} {isnum} false})}}\n\n{c:cembed {channel(id)} {{json}}}",
  "embed": "{}",
  "last_fetched": "2026-10-20T17:21:32.467Z"
}