Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

TimeParser

Time parser for Python.

Example Usage

import timeparser

print(timeparser.parse("in 4s"))

Example Usage (Discord Bot)

import timeparser
from discord.ext import commands

bot = commands.Bot("!")

@bot.command()
async def parse_time(ctx, *, time: timeparser.TimeConverter):
  await ctx.send(f"This time is {time} in the {time.direction}.")

bot.run("TOKEN")

About

Time parser for Python.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages