friday

Private

Content

31 lines
{=(em1):<:AMarrowRp:1011939068222918807>}
{=(d2cd2):Friday}
{=(comment): ^ this is the day of the week to count down to, first letter capitalized, spelled correctly in English}

{=(t2cd2f24h):20:00}
{=(comment):  ^ this is the time of that day to count down to, in 24h format, HH:MM, 00:00-23:59}

{=(offset):-6}
{=(comment):^ this is your timezone's UTC offset}

{=(titlefmt):12h}
{=(comment): ^ this is the format you want the time in the embed title to be displayed as. value should be either "12h" or "24h" (without quotes)}

{=(comment):The following variable just converts the t2cd2f24h to 12h format for the embed title. If you want to change the PM/AM at the end to lowercase, use %P instead of %p}
{=(t2cd2f12h):{strf(2020-01-01 {t2cd2f24h}:00):%I:%M %p}}

{=(comment):Please don't touch anything below, time math is very complex}
{=(osunix):{m:trunc({unix}+({offset}*3600))}}
{=(crntDayepoch4t2cd2):{m:trunc({strf({strf({osunix}):%F} {t2cd2f24h}:{strf({osunix}):%S}):%s}+({offset}*-3600))}}

{=(day):86400}
{=(DotW):{strf({m:trunc({osunix}+({day}*0))}):%A} {strf({m:trunc({osunix}+({day}*1))}):%A} {strf({m:trunc({osunix}+({day}*2))}):%A} {strf({m:trunc({osunix}+({day}*3))}):%A} {strf({m:trunc({osunix}+({day}*4))}):%A} {strf({m:trunc({osunix}+({day}*5))}):%A} {strf({m:trunc({osunix}+({day}*6))}):%A}}
{=(d2cd2index):{index({d2cd2}):{DotW}}}

{=(dt2cd2epoch):{strf({m:trunc({crntDayepoch4t2cd2}+({d2cd2index}*{day}))}):%s}}
{=(output):td:{strf({if({unix}<={dt2cd2epoch}):{dt2cd2epoch}|{m:trunc({dt2cd2epoch}+({day}*7))}}):%F %T}}

{=(output):{if({unix}<={dt2cd2epoch}):{dt2cd2epoch}|{m:trunc({dt2cd2epoch}+({day}*7))}}}

{=(desc):{em1}**Start:** <t:{output}:f>
{em1}**Timer:** <t:{output}:R>}

Embed

1 line
{"color": 3092790, "description": "{desc}"}
Raw JSON
{
  "id": 1607227,
  "created_at": "2022-12-02T17:20:28.000Z",
  "tag_name": "friday",
  "nsfw": false,
  "owner_id": "935523589640310854",
  "uses": 11,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "",
  "hidden": false,
  "guild_id": "1000287735329853460",
  "sharer": "935523589640310854",
  "content": "{=(em1):<:AMarrowRp:1011939068222918807>}\n{=(d2cd2):Friday}\n{=(comment): ^ this is the day of the week to count down to, first letter capitalized, spelled correctly in English}\n\n{=(t2cd2f24h):20:00}\n{=(comment):  ^ this is the time of that day to count down to, in 24h format, HH:MM, 00:00-23:59}\n\n{=(offset):-6}\n{=(comment):^ this is your timezone's UTC offset}\n\n{=(titlefmt):12h}\n{=(comment): ^ this is the format you want the time in the embed title to be displayed as. value should be either \"12h\" or \"24h\" (without quotes)}\n\n{=(comment):The following variable just converts the t2cd2f24h to 12h format for the embed title. If you want to change the PM/AM at the end to lowercase, use %P instead of %p}\n{=(t2cd2f12h):{strf(2020-01-01 {t2cd2f24h}:00):%I:%M %p}}\n\n{=(comment):Please don't touch anything below, time math is very complex}\n{=(osunix):{m:trunc({unix}+({offset}*3600))}}\n{=(crntDayepoch4t2cd2):{m:trunc({strf({strf({osunix}):%F} {t2cd2f24h}:{strf({osunix}):%S}):%s}+({offset}*-3600))}}\n\n{=(day):86400}\n{=(DotW):{strf({m:trunc({osunix}+({day}*0))}):%A} {strf({m:trunc({osunix}+({day}*1))}):%A} {strf({m:trunc({osunix}+({day}*2))}):%A} {strf({m:trunc({osunix}+({day}*3))}):%A} {strf({m:trunc({osunix}+({day}*4))}):%A} {strf({m:trunc({osunix}+({day}*5))}):%A} {strf({m:trunc({osunix}+({day}*6))}):%A}}\n{=(d2cd2index):{index({d2cd2}):{DotW}}}\n\n{=(dt2cd2epoch):{strf({m:trunc({crntDayepoch4t2cd2}+({d2cd2index}*{day}))}):%s}}\n{=(output):td:{strf({if({unix}<={dt2cd2epoch}):{dt2cd2epoch}|{m:trunc({dt2cd2epoch}+({day}*7))}}):%F %T}}\n\n{=(output):{if({unix}<={dt2cd2epoch}):{dt2cd2epoch}|{m:trunc({dt2cd2epoch}+({day}*7))}}}\n\n{=(desc):{em1}**Start:** <t:{output}:f>\n{em1}**Timer:** <t:{output}:R>}",
  "embed": "{\"color\": 3092790, \"description\": \"{desc}\"}",
  "last_fetched": "2026-10-20T19:04:46.634Z"
}