@@ -61,29 +61,17 @@ besides behaving as expected, all accept a timezone parameter and each has their
6161 print (yesterday)
6262 ' 2016-06-27T00:00:00-05:00'
6363
64- The next group of static helpers are the ``from_xxx() `` and ``create() `` helpers.
65- Most of the static ``create `` functions allow you to provide
64+ The next helper is ``create() `` which allows you to provide
6665as many or as few arguments as you want and will provide default values for all others.
67- Generally default values are the current date, time set to ``00:00:00 `` and ``UTC `` timezone.
6866
6967.. code-block :: python
7068
71- pendulum.from_date(year, month, day, tz)
72- pendulum.from_time(hour, minute, second, microsecond, tz)
7369 pendulum.create(year, month, day, hour, minute, second, microsecond, tz)
7470
75- ``from_date() `` will default the time to ``00:00:00 ``. ``from_time() `` will default the date to today.
7671 ``create() `` will default any null parameter to the current date for the date part and to ``00:00:00 `` for time.
77- As before, the ``tz `` defaults to the ``UTC `` timezone and otherwise can be a ``TimezoneInfo `` instance
72+ As before, the ``tz `` defaults to the ``UTC `` timezone and otherwise can be a ``Timezone `` instance
7873or simply a string timezone value.
7974
80- .. code-block :: python
81-
82- xmas_this_year = pendulum.from_date(None , 12 , 25 )
83- # Year defaults to current year
84- y2k = pendulum.create(2000 , 1 , 1 , 0 , 0 , 0 )
85- noon_london_tz = pendulum.from_time(12 , 0 , 0 , tz = ' Europe/London' )
86-
8775.. code-block :: python
8876
8977 pendulum.from_format(time, format , tz)
0 commit comments