tz

Privateunrated

Content

18 lines
{=(COMMENT):Comma Sanitiser}
{=(sani):{replace(%2C,):{replace(%20, ):{urlencode:{args}}}}}


{=(COMMENT):Converting all time intervals to seconds}
{=(weekInSeconds):604800}
{=(dayInSeconds):86400}
{=(hourInSeconds):3600}
{=(minuteInSeconds):60}


{=(COMMENT):Calculating total number of seconds}
{=(inSeconds):{replace(w,*{weekInSeconds}+):{replace(week,w):{replace(d,*{dayInSeconds}+):{replace(day,d):{replace(h,*{hourInSeconds}+):{replace(hour,h):{replace(hr,h):{replace(m,*{minuteInSeconds}):{replace(min,m):{replace(minute,m):{replace(s,):{sani}}}}}}}}}}}}}
{=(totalSeconds):{m:trunc({inSeconds} + {unix})}}   


{=(COMMENT):Embed}
{embed(color):#02ff3e}

Embed

1 line
{"color": 5198940, "title": "**Your requested time in a timestamp!**", "description": "• `<t:{totalSeconds}:f>` <a:arrow:852927804533243924> • <t:{totalSeconds}:f>\n• `<t:{totalSeconds}:F>` <a:arrow:852927804533243924> • <t:{totalSeconds}:F>\n• `<t:{totalSeconds}:d>` <a:arrow:852927804533243924> • <t:{totalSeconds}:d>    \n• `<t:{totalSeconds}:D>` <a:arrow:852927804533243924> • <t:{totalSeconds}:D>\n• `<t:{totalSeconds}:t>` <a:arrow:852927804533243924> • <t:{totalSeconds}:t>      \n• `<t:{totalSeconds}:T>` <a:arrow:852927804533243924> • <t:{totalSeconds}:T> \n• `<t:{totalSeconds}:R>` <a:arrow:852927804533243924> • <t:{totalSeconds}:R>\n"}
Raw JSON
{
  "id": 1087478,
  "created_at": "2021-10-01T19:39:19.000Z",
  "tag_name": "tz",
  "nsfw": false,
  "owner_id": "681414142938316851",
  "uses": 40,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "877146086567981057",
  "sharer": "681414142938316851",
  "content": "{=(COMMENT):Comma Sanitiser}\n{=(sani):{replace(%2C,):{replace(%20, ):{urlencode:{args}}}}}\n\n\n{=(COMMENT):Converting all time intervals to seconds}\n{=(weekInSeconds):604800}\n{=(dayInSeconds):86400}\n{=(hourInSeconds):3600}\n{=(minuteInSeconds):60}\n\n\n{=(COMMENT):Calculating total number of seconds}\n{=(inSeconds):{replace(w,*{weekInSeconds}+):{replace(week,w):{replace(d,*{dayInSeconds}+):{replace(day,d):{replace(h,*{hourInSeconds}+):{replace(hour,h):{replace(hr,h):{replace(m,*{minuteInSeconds}):{replace(min,m):{replace(minute,m):{replace(s,):{sani}}}}}}}}}}}}}\n{=(totalSeconds):{m:trunc({inSeconds} + {unix})}}   \n\n\n{=(COMMENT):Embed}\n{embed(color):#02ff3e}",
  "embed": "{\"color\": 5198940, \"title\": \"**Your requested time in a timestamp!**\", \"description\": \"• `<t:{totalSeconds}:f>` <a:arrow:852927804533243924> • <t:{totalSeconds}:f>\\n• `<t:{totalSeconds}:F>` <a:arrow:852927804533243924> • <t:{totalSeconds}:F>\\n• `<t:{totalSeconds}:d>` <a:arrow:852927804533243924> • <t:{totalSeconds}:d>    \\n• `<t:{totalSeconds}:D>` <a:arrow:852927804533243924> • <t:{totalSeconds}:D>\\n• `<t:{totalSeconds}:t>` <a:arrow:852927804533243924> • <t:{totalSeconds}:t>      \\n• `<t:{totalSeconds}:T>` <a:arrow:852927804533243924> • <t:{totalSeconds}:T> \\n• `<t:{totalSeconds}:R>` <a:arrow:852927804533243924> • <t:{totalSeconds}:R>\\n\"}",
  "last_fetched": "2026-10-20T17:43:43.680Z"
}