Files
  • main.py
  • requirements.txt
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"""
Hello!
======
To get started, hit the green "run >" button at the tippy top.
"""

from timefhuman import timefhuman


for string in (
    '7/17 3-4 PM',
    '7/17 3 p.m. - 4 p.m.',
    'Monday 3 pm or Tu noon',
    '7/17 4 or 5 PM'):
  print("Example:", string)
  print(timefhuman(string))

print("""
Try it out here!
Just type in

> timefhuman("next next Monday 5PM")

in the interpreter here.
""")