S
S
shibanovan2019-05-06 11:04:42
Python
shibanovan, 2019-05-06 11:04:42

How to correctly parse the reminder date/time from the string (Tomorrow/every Tue/at 14:00)?

I am not a professional developer, programming is a hobby for me. Just for fun, I'm writing a reminder that takes a string.
Accordingly, from this line it parses the reminder text and, in fact, when to remind about it.
I would like the input to be as flexible as possible, i.e. not just a specific date time, but options like:
Every Tuesday at 14:00 for a massage
To a driving school the day after tomorrow at 19:00
On weekdays at 17:00 check the
report I quickly get confused.
So I thought, maybe everything has already been written before me and somewhere you can see how the rules do it. boys?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2019-05-06
@vintello

yes, the boys have already come up with everything for a long time

A
Alexander Skusnov, 2019-05-06
@AlexSku

An example of a command parser for a robot ( F#, Dmitry Soshnikov ).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question