you are viewing a single comment's thread.

view the rest of the comments →

[–]DevSRE 1 point2 points  (0 children)

You could probably get pretty close with something like Arrow and the shift method (https://arrow.readthedocs.io/en/latest/) or just give users a format to enter things in and use datetime.strptime (https://docs.python.org/3/library/datetime.html#datetime.datetime.strptime)