Helpful Tips
Date Parser
Dates can be parsed a few different ways.
The bot will first try to parse dates with JavaScript's
Date.parse()
method. The link to Date.parse() will show some examples, but they tend to be very long and are unreasonable to type out by hand.
If the above test fails, then the bot will try parsing it in the format <day> <time> <timezone>
.
If you omit the day, like in day
: Either spelled out (July 1
) or mm/dd
(7/1
). Reversing the month and day is unsupported, and the date may not parse.
time
: 3 pm
, 10:30 am
, or 21
/21:00
without am/pm if using 24 hour format.
timezone
: Must be either pdt
, pt
, mdt
, cdt
, mx
, edt
, et
, utc
, cest
, or jst
. Daylight savings time, like pdt
and pst
are converted automatically.
11am edt
, and the current time is past that, like if it is 3:00 PM EDT, then the parser will parse it as 11:00 AM the next day.
Some notes that can make the date clearer for other server members but are ultimately ignored by the parser:
The following are some examples that will all resolve to July 1 at 12:00 PM Pacific Time:
day
and time
.today
in place of the day
argument, and that will parse the day as the current day.
July 1, 2023 12:00 pm pdt
July 1 at 12pm pst
7/1/23 at 3pm edt
7/1 15:00 edt
7/1 21 cest
now
, and that will parse the date as the current time. For example, !cups now
is helpful to get the mp cups that are currently active.