@@ -8,8 +8,8 @@ Remember that the comparison is done in the UTC timezone so things aren't always
88
99 import pendulum
1010
11- first = pendulum.create (2012 , 9 , 5 , 23 , 26 , 11 , 0 , tz = ' America/Toronto' )
12- second = pendulum.create (2012 , 9 , 5 , 20 , 26 , 11 , 0 , tz = ' America/Vancouver' )
11+ first = pendulum.datetime (2012 , 9 , 5 , 23 , 26 , 11 , tz = ' America/Toronto' )
12+ second = pendulum.datetime (2012 , 9 , 5 , 20 , 26 , 11 , tz = ' America/Vancouver' )
1313
1414 first.to_datetime_string()
1515 ' 2012-09-05 23:26:11'
@@ -58,14 +58,14 @@ The default is ``True`` which determines if its between or equal to the boundari
5858
5959 import pendulum
6060
61- first = pendulum.create (2012 , 9 , 5 , 1 )
62- second = pendulum.create (2012 , 9 , 5 , 5 )
61+ first = pendulum.datetime (2012 , 9 , 5 , 1 )
62+ second = pendulum.datetime (2012 , 9 , 5 , 5 )
6363
64- pendulum.create (2012 , 9 , 5 , 3 ).between(first, second)
64+ pendulum.datetime (2012 , 9 , 5 , 3 ).between(first, second)
6565 True
66- pendulum.create (2012 , 9 , 5 , 3 ).between(first, second)
66+ pendulum.datetime (2012 , 9 , 5 , 3 ).between(first, second)
6767 True
68- pendulum.create (2012 , 9 , 5 , 5 ).between(first, second, False )
68+ pendulum.datetime (2012 , 9 , 5 , 5 ).between(first, second, False )
6969 False
7070
7171 There are also the ``min_() `` and ``max_() `` methods.
@@ -75,8 +75,8 @@ As usual the default parameter is ``now`` if ``None`` is specified.
7575
7676 import pendulum
7777
78- dt1 = pendulum.create (2012 , 1 , 1 , 0 , 0 , 0 , 0 )
79- dt2 = pendulum.create (2014 , 1 , 30 , 0 , 0 , 0 , 0 )
78+ dt1 = pendulum.datetime (2012 , 1 , 1 , 0 , 0 , 0 , 0 )
79+ dt2 = pendulum.datetime (2014 , 1 , 30 , 0 , 0 , 0 , 0 )
8080
8181 print (dt1.min_(dt2))
8282 ' 2012-01-01T00:00:00+00:00'
@@ -104,15 +104,9 @@ the ``now()`` is created in the same timezone as the instance.
104104
105105 dt = pendulum.now()
106106
107- dt.is_weekday()
108- dt.is_weekend()
109- dt.is_yesterday()
110- dt.is_today()
111- dt.is_tomorrow()
112107 dt.is_future()
113108 dt.is_past()
114109 dt.is_leap_year()
115- dt.is_same_day(pendulum.now())
116110
117111 born = pendulum.create(1987 , 4 , 23 )
118112 not_birthday = pendulum.create(2014 , 9 , 26 )
0 commit comments