0

I'm looking for a way of creating an arbitrary timedelta compatible object with pendulum. Previously there was a pendulum.interval method but this seems to not exist in recent versions of pendulum.

So say I'd like a delta of five minutes: surely there's a way of doing this that's more elegant than creating two datetime objects and subtracting them? Ideally I'd like to say: pendulum.timedelta(minutes=5).

maxcountryman
  • 1,562
  • 1
  • 24
  • 51

1 Answers1

3

Just do:

pendulum.duration(minutes=5)