Skip to content

Commit cd88d84

Browse files
committed
Adds datetime, date and time to module level to mimic standard library
1 parent 1e52620 commit cd88d84

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pendulum/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
from .interval import Interval
77
from .period import Period
88

9+
# Mimicking standard library
10+
datetime = Pendulum
11+
date = Date
12+
time = Time
13+
914
# Constants
1015
from .constants import (
1116
MONDAY, TUESDAY, WEDNESDAY,

0 commit comments

Comments
 (0)