diff options
author | Alen <alen@dotfiles.xyz> | 2025-01-19 04:31:38 +0400 |
---|---|---|
committer | Alen <alen@dotfiles.xyz> | 2025-01-19 04:31:38 +0400 |
commit | ac0d201aa3f2c3063213611d76979dfcb683c637 (patch) | |
tree | c7ae8793a2a4b725484a4502b1cf97be721001df | |
parent | 841e09dc690550c0211ee901cbb4372d3b151c8c (diff) |
Rename BDelta to BD in IPython datetime utils
-rw-r--r-- | dot_ipython/profile_default/startup/45_datetime.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dot_ipython/profile_default/startup/45_datetime.py b/dot_ipython/profile_default/startup/45_datetime.py index d8dcf4e..4dd592b 100644 --- a/dot_ipython/profile_default/startup/45_datetime.py +++ b/dot_ipython/profile_default/startup/45_datetime.py @@ -59,14 +59,14 @@ D = lambda d: datetime.timedelta(days=d) H = lambda h: datetime.timedelta(hours=h) M = lambda m: datetime.timedelta(minutes=m) S = lambda s: datetime.timedelta(seconds=s) -B = lambda s: BDelta(s) +B = lambda s: BD(s) def now(tz=UTC): return datetime.datetime.now(tz=tz) -class BDelta: +class BD: """Convenient dev weekday delta.""" def __init__(self, n: int): |