servertime

Privateunrated

Content

39 lines
{=(comment): For 24h display, put 24 as the value of the notation variable below.}
{=(comment): For 12h display, put 12 as the value of the notation variable below.}
{=(notation):12}

{=(comment): If DST is observed, put S as the value of the DST variable below (typically during the summer months for Northern Hemisphere folks).}
{=(comment): If DST is not observed, put W as the value of the DST variable below. S=Summer (April-October), W=Winter (Nov-March). No space before or after.}
{=(DST):S}
{=(comment):Yes, you have to manually change this, I'm not automating it because the dates for when DST starts and ends vary by location, and change year after year.}

{=(comment): BlockDisplay changes how the code block that displays the time colors the numbers and text (colors don't display on mobile). Leave blank for white display. No space before. For more information, check out https://gist.github.com/matthewzring/9f7bbfd102003963f9be7dbcf7d40e51 }
{=(BlockDisplay):ml}

{=(comment):The list of timezones and houroffsets are paired by value index locations.}
{=(timezones):Server UK Pacific Mountain Central Eastern Philippines}
{=(Shouroffsets):-8 1 -7 -6 -5 -4 8}
{=(Whouroffsets):0 -8 -8 -7 -6 -5 7}

{=(comment):where the math and formatting are done for the 16 entries in timezones. if this confuses you, don't touch it and ask for help}
{=(h):3600}
{=(BD):```{BlockDisplay}
}
{=(format):%I:%M %p}
{=({timezones(1)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(1)}))}):%A %H:%M}```}
{=({timezones(2)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(2)}))}):{format}}```}
{=({timezones(3)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(3)}))}):{format}}```}
{=({timezones(4)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(4)}))}):{format}}```}
{=({timezones(5)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(5)}))}):{format}}```}
{=({timezones(6)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(6)}))}):{format}}```}
{=({timezones(7)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(7)}))}):{format}}```}
{=({timezones(8)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(8)}))}):{format}}```}
{=({timezones(9)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(9)}))}):{format}}```}
{=({timezones(10)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(10)}))}):{format}}```}
{=({timezones(11)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(11)}))}):{format}}```}
{=({timezones(12)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(12)}))}):{format}}```}
{=({timezones(13)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(13)}))}):{format}}```}
{=({timezones(14)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(14)}))}):{format}}```}
{=({timezones(15)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(15)}))}):{format}}```}
{=({timezones(16)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(16)}))}):{format}}```}
{=(url):https://www.timeanddate.com/scripts/sunmap.php?iso={strf:%Y%m%dT%H%M}}

Embed

1 line
{"color": 2793880, "title": "{timezones(1)}", "fields": [{"name": "**{timezones(2)}**", "value": "{{timezones(2)}}", "inline": true}, {"name": "**{timezones(3)}**", "value": "{{timezones(3)}}", "inline": true}, {"name": "**{timezones(4)}**", "value": "{{timezones(4)}}", "inline": true}, {"name": "**{timezones(5)}**", "value": "{{timezones(5)}}", "inline": true}, {"name": "**{timezones(6)}**", "value": "{{timezones(6)}}", "inline": true}, {"name": "**{timezones(7)}**", "value": "{{timezones(7)}}", "inline": true}], "footer": {"text": "Made with love by Rutabaga ♥️"}, "description": "{{timezones(1)}}"}
Raw JSON
{
  "id": 192538,
  "created_at": "2022-04-26T10:36:14.088Z",
  "tag_name": "servertime",
  "nsfw": false,
  "owner_id": "148905756123463680",
  "uses": 19,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "702171264856490044",
  "sharer": "148905756123463680",
  "content": "{=(comment): For 24h display, put 24 as the value of the notation variable below.}\n{=(comment): For 12h display, put 12 as the value of the notation variable below.}\n{=(notation):12}\n\n{=(comment): If DST is observed, put S as the value of the DST variable below (typically during the summer months for Northern Hemisphere folks).}\n{=(comment): If DST is not observed, put W as the value of the DST variable below. S=Summer (April-October), W=Winter (Nov-March). No space before or after.}\n{=(DST):S}\n{=(comment):Yes, you have to manually change this, I'm not automating it because the dates for when DST starts and ends vary by location, and change year after year.}\n\n{=(comment): BlockDisplay changes how the code block that displays the time colors the numbers and text (colors don't display on mobile). Leave blank for white display. No space before. For more information, check out https://gist.github.com/matthewzring/9f7bbfd102003963f9be7dbcf7d40e51 }\n{=(BlockDisplay):ml}\n\n{=(comment):The list of timezones and houroffsets are paired by value index locations.}\n{=(timezones):Server UK Pacific Mountain Central Eastern Philippines}\n{=(Shouroffsets):-8 1 -7 -6 -5 -4 8}\n{=(Whouroffsets):0 -8 -8 -7 -6 -5 7}\n\n{=(comment):where the math and formatting are done for the 16 entries in timezones. if this confuses you, don't touch it and ask for help}\n{=(h):3600}\n{=(BD):```{BlockDisplay}\n}\n{=(format):%I:%M %p}\n{=({timezones(1)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(1)}))}):%A %H:%M}```}\n{=({timezones(2)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(2)}))}):{format}}```}\n{=({timezones(3)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(3)}))}):{format}}```}\n{=({timezones(4)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(4)}))}):{format}}```}\n{=({timezones(5)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(5)}))}):{format}}```}\n{=({timezones(6)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(6)}))}):{format}}```}\n{=({timezones(7)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(7)}))}):{format}}```}\n{=({timezones(8)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(8)}))}):{format}}```}\n{=({timezones(9)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(9)}))}):{format}}```}\n{=({timezones(10)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(10)}))}):{format}}```}\n{=({timezones(11)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(11)}))}):{format}}```}\n{=({timezones(12)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(12)}))}):{format}}```}\n{=({timezones(13)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(13)}))}):{format}}```}\n{=({timezones(14)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(14)}))}):{format}}```}\n{=({timezones(15)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(15)}))}):{format}}```}\n{=({timezones(16)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(16)}))}):{format}}```}\n{=(url):https://www.timeanddate.com/scripts/sunmap.php?iso={strf:%Y%m%dT%H%M}}",
  "embed": "{\"color\": 2793880, \"title\": \"{timezones(1)}\", \"fields\": [{\"name\": \"**{timezones(2)}**\", \"value\": \"{{timezones(2)}}\", \"inline\": true}, {\"name\": \"**{timezones(3)}**\", \"value\": \"{{timezones(3)}}\", \"inline\": true}, {\"name\": \"**{timezones(4)}**\", \"value\": \"{{timezones(4)}}\", \"inline\": true}, {\"name\": \"**{timezones(5)}**\", \"value\": \"{{timezones(5)}}\", \"inline\": true}, {\"name\": \"**{timezones(6)}**\", \"value\": \"{{timezones(6)}}\", \"inline\": true}, {\"name\": \"**{timezones(7)}**\", \"value\": \"{{timezones(7)}}\", \"inline\": true}], \"footer\": {\"text\": \"Made with love by Rutabaga ♥️\"}, \"description\": \"{{timezones(1)}}\"}",
  "last_fetched": "2026-10-20T21:31:41.059Z"
}