worldclock
Prints out the current times for various popular regions of the globe as well as provide an image of a "sunmap" below. "!worldclock" will output times by default in 24 hour notation. if you would like 12 hour notation, use "!worldclock 12" If you desire to add a timezone not listed, you will need to: 1) Add it at the end of the {=(zone): list 2) Add the hour offset at the end of the {=(hoffset): list. It will be either + or - a number. 2.5) Add the minute offset at the end of the {=(moffset): list (this will be 0 for most of you). If not, pm me (Raffael#7777). 3) Add a "{m:trunc({H}{hoffset(x)})}" at the end of the {=(hours): list, with a space between it and previous one. Replace the x with the index of the zone variable. Just increment +1 based on the last entry in the hours list. 3.5) Do the same thing at the end of the {=(mins): list. Copy and paste a prior entry in that list at the end and change the number to the index of the zone variable. 4) Create a new variable line at the bottom that shares the name of the zone you added to the zone list in step 1. It should look like: {=(zonename):{{format}({index(zonename):{zone}})}:{if({mins({index(zonename):{zone}})}<10):0}{mins({index(zonename):{zone}})}{if({format}==12h):{suf({index(zonename):{zone}})}}} BE SURE TO REPLACE ALL THE "zonename" instances with the name of the timezone you added. 5) Create a new field in the embed, above the legend (move the legend down plz), and put the call for your new variable {zonename} in the title, and a description for it in the description. 6) PM me if you need help (Raffael#7777).
Content
44 lines{=(comment): If you want the sun-map image shown in the embed, set the image variable below to 1. If you want to hide the sun-map image, set the image variable below to 0.}
{=(image):1}
{=(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):W}
{=(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):UTC Pacific Mountain Central Eastern Newfoundland Britain Germany Moscow India Omsk Jakarta China Japan Sydney NZ}
{=(Shouroffsets):0 -7 -6 -5 -4 -2.5 1 2 3 5.5 6 7 8 9 10 12}
{=(Whouroffsets):0 -8 -7 -6 -5 -3.5 0 1 3 5.5 6 7 8 9 11 13}
{=(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):{any({notation}==12|{notation}==12h):%I:%M %p|{any({notation}==24|{notation}==24h):%H:%M|%X}}}
{=({timezones(1)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(1)}))}):{format}} {strf:%A, %B }{ord:{strf:%-d}},{strf: %Y}```}
{=({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}}
{delete}
{embed(timestamp):now}Embed
1 line{"color": 2793880, "image": {"url": "{if({image}==1):{url}}"}, "title": "{timezones(1)}", "author": {"name": "All formats given in {any({format(1)::}==%H|{format(1)::}==%-H|{format(1)::}==%X):24h|{any({format(1)::}==%I|{format(1)::}==%-I):12h}} notation", "icon_url": "https://i.imgur.com/CIl9Dyp.png"}, "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}, {"name": "**{timezones(8)}**", "value": "{{timezones(8)}}", "inline": true}, {"name": "**{timezones(9)}**", "value": "{{timezones(9)}}", "inline": true}, {"name": "**{timezones(10)}**", "value": "{{timezones(10)}}", "inline": true}, {"name": "**{timezones(11)}**", "value": "{{timezones(11)}}", "inline": true}, {"name": "**{timezones(12)}**", "value": "{{timezones(12)}}", "inline": true}, {"name": "**{timezones(13)}**", "value": "{{timezones(13)}}", "inline": true}, {"name": "**{timezones(14)}**", "value": "{{timezones(14)}}", "inline": true}, {"name": "**{timezones(15)}**", "value": "{{timezones(15)}}", "inline": true}, {"name": "**{timezones(16)}**", "value": "{{timezones(16)}}", "inline": true}, {"name": "{if({image}==1):**Legend**|}", "value": "{if({image}==1)::sunny: = The Sun's position directly overhead in relation to an observer.\n:full_moon: = The Moon's position at its zenith in relation to an observer.|}", "inline": false}], "footer": {"text": "{if({image}==1):Sunmap image courtesy of timeanddate.com}", "icon_url": ""}, "description": "{{timezones(1)}}"}Raw JSON
{
"id": 47702,
"created_at": "2019-05-10T01:59:34.000Z",
"tag_name": "worldclock",
"nsfw": false,
"owner_id": "129419437911572480",
"uses": 60,
"description": "Prints out the current times for various popular regions of the globe as well as provide an image of a \"sunmap\" below.\n\"!worldclock\" will output times by default in 24 hour notation. if you would like 12 hour notation, use\n\"!worldclock 12\"\n\nIf you desire to add a timezone not listed, you will need to:\n1) Add it at the end of the {=(zone): list\n2) Add the hour offset at the end of the {=(hoffset): list. It will be either + or - a number.\n2.5) Add the minute offset at the end of the {=(moffset): list (this will be 0 for most of you). If not, pm me (Raffael#7777).\n3) Add a \"{m:trunc({H}{hoffset(x)})}\" at the end of the {=(hours): list, with a space between it and previous one. Replace the x with the index of the zone variable. Just increment +1 based on the last entry in the hours list.\n3.5) Do the same thing at the end of the {=(mins): list. Copy and paste a prior entry in that list at the end and change the number to the index of the zone variable.\n4) Create a new variable line at the bottom that shares the name of the zone you added to the zone list in step 1. It should look like: {=(zonename):{{format}({index(zonename):{zone}})}:{if({mins({index(zonename):{zone}})}<10):0}{mins({index(zonename):{zone}})}{if({format}==12h):{suf({index(zonename):{zone}})}}} BE SURE TO REPLACE ALL THE \"zonename\" instances with the name of the timezone you added.\n5) Create a new field in the embed, above the legend (move the legend down plz), and put the call for your new variable {zonename} in the title, and a description for it in the description.\n6) PM me if you need help (Raffael#7777).",
"restricted": false,
"shared": true,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "542013028795809792",
"sharer": "129419437911572480",
"content": "{=(comment): If you want the sun-map image shown in the embed, set the image variable below to 1. If you want to hide the sun-map image, set the image variable below to 0.}\n{=(image):1}\n\n{=(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):W}\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):UTC Pacific Mountain Central Eastern Newfoundland Britain Germany Moscow India Omsk Jakarta China Japan Sydney NZ}\n{=(Shouroffsets):0 -7 -6 -5 -4 -2.5 1 2 3 5.5 6 7 8 9 10 12}\n{=(Whouroffsets):0 -8 -7 -6 -5 -3.5 0 1 3 5.5 6 7 8 9 11 13}\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):{any({notation}==12|{notation}==12h):%I:%M %p|{any({notation}==24|{notation}==24h):%H:%M|%X}}}\n{=({timezones(1)}):{BD}{strf({m:trunc({unix}+({h}*{{DST}houroffsets(1)}))}):{format}} {strf:%A, %B }{ord:{strf:%-d}},{strf: %Y}```}\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}}\n{delete}\n{embed(timestamp):now}",
"embed": "{\"color\": 2793880, \"image\": {\"url\": \"{if({image}==1):{url}}\"}, \"title\": \"{timezones(1)}\", \"author\": {\"name\": \"All formats given in {any({format(1)::}==%H|{format(1)::}==%-H|{format(1)::}==%X):24h|{any({format(1)::}==%I|{format(1)::}==%-I):12h}} notation\", \"icon_url\": \"https://i.imgur.com/CIl9Dyp.png\"}, \"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}, {\"name\": \"**{timezones(8)}**\", \"value\": \"{{timezones(8)}}\", \"inline\": true}, {\"name\": \"**{timezones(9)}**\", \"value\": \"{{timezones(9)}}\", \"inline\": true}, {\"name\": \"**{timezones(10)}**\", \"value\": \"{{timezones(10)}}\", \"inline\": true}, {\"name\": \"**{timezones(11)}**\", \"value\": \"{{timezones(11)}}\", \"inline\": true}, {\"name\": \"**{timezones(12)}**\", \"value\": \"{{timezones(12)}}\", \"inline\": true}, {\"name\": \"**{timezones(13)}**\", \"value\": \"{{timezones(13)}}\", \"inline\": true}, {\"name\": \"**{timezones(14)}**\", \"value\": \"{{timezones(14)}}\", \"inline\": true}, {\"name\": \"**{timezones(15)}**\", \"value\": \"{{timezones(15)}}\", \"inline\": true}, {\"name\": \"**{timezones(16)}**\", \"value\": \"{{timezones(16)}}\", \"inline\": true}, {\"name\": \"{if({image}==1):**Legend**|}\", \"value\": \"{if({image}==1)::sunny: = The Sun's position directly overhead in relation to an observer.\\n:full_moon: = The Moon's position at its zenith in relation to an observer.|}\", \"inline\": false}], \"footer\": {\"text\": \"{if({image}==1):Sunmap image courtesy of timeanddate.com}\", \"icon_url\": \"\"}, \"description\": \"{{timezones(1)}}\"}",
"last_fetched": "2026-10-20T20:26:43.140Z"
}