Search code examples
pythondiscord.pydatetime-conversionpycord

Month format in humanfriendly


I'm making a Discord bot and for my tempmute command I'll use the new timeout feature. Since the time of the tempmute is variable, I use the library humanfrinedly to convert it. The usage of the library is:

s for seconds

m for minutes

h for hours

d for days

y for years

What is the one for months? I've tried with uppercase M but it takes as minutes...


Solution

  • enter image description here

    I am by no means an expert on this module; however, a quick look through their API supplied me with this. It does not appear there is a month conversion in this module.

    https://humanfriendly.readthedocs.io/en/latest/api.html#module-humanfriendly