Skip to content

jay3332/TimeParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

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")

Releases

No releases published

Packages

No packages published

Languages