diff --git a/datetime.py b/datetime.py index 13274b93865b21f514532415b43378a718807149..066e599e20c8f79f7ffa1763acfeeeb9e946880d 100644 --- a/datetime.py +++ b/datetime.py @@ -32,6 +32,11 @@ class Datetime(BotPlugin): dt = datetime.now() return dt.strftime(fmt) + @botcmd + def datetime(self, message, args): + """Displays both the date and time in the current locale""" + return "The date and time are {}".format(self._get_date_time('%x %X')) + @botcmd def date(self, message, args): """Displays the current date in the current locale"""