Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dateutil/dateutil
/ functions
Functions
1,660 in github.com/dateutil/dateutil
⨍
Functions
1,660
◇
Types & classes
115
↳
Endpoints
17
↓ 228 callers
Method
_rrulestr_reverse_test
Call with an `rrule` and it will test that `str(rrule)` generates a string which generates the same `rrule` as the input when passed
tests/test_rrule.py:36
↓ 88 callers
Function
parse
Parse a string in one of the supported formats, using the ``parserinfo`` parameters. :param timestr: A string containing a date
src/dateutil/parser/_parser.py:1264
↓ 82 callers
Method
gettz
(self, tzname)
tests/test_tz.py:1494
↓ 77 callers
Method
replace
Return new rrule with same attributes except for those attributes given new values by whichever keyword arguments are specified.
src/dateutil/rrule.py:777
↓ 60 callers
Method
append
(self, val, label=None)
src/dateutil/parser/_parser.py:422
↓ 49 callers
Method
utcoffset
(self, dt)
tests/test_tz.py:2534
↓ 41 callers
Method
tzname
(self, dt)
src/dateutil/tz/tz.py:72
↓ 37 callers
Function
construct_zone
Builds a TZif file. ``leap_seconds`` is a sequence of ``(timestamp, correction)`` pairs, and ``indicators`` adds standard/wall and UT/local i
tests/test_tzfile.py:120
↓ 27 callers
Method
tzoffset
(self, name)
src/dateutil/parser/_parser.py:348
↓ 23 callers
Method
get
Retrieve a :py:class:`datetime.tzinfo` object by its ``tzid``. :param tzid: If there is exactly one time zone available,
src/dateutil/tz/tz.py:714
↓ 23 callers
Function
set_tzpath
(tzpath, block_tzdata=False, clear_cache=True)
tests/_common.py:39
↓ 22 callers
Method
read
(self, *args)
tests/test_tzfile.py:1562
↓ 22 callers
Method
split
(cls, s)
src/dateutil/parser/_parser.py:194
↓ 21 callers
Method
rrule
Include the given :py:class:`rrule` instance in the recurrence set generation.
src/dateutil/rrule.py:1371
↓ 19 callers
Method
dst
(self, dt)
tests/test_tz.py:2543
↓ 16 callers
Method
cache_clear
(self)
src/dateutil/tz/tz.py:1014
↓ 13 callers
Method
count
Returns the number of recurrences in this set. It will have go through the whole recurrence, if this hasn't been done before.
src/dateutil/rrule.py:198
↓ 10 callers
Method
_get_tzname
(self, tzname)
tests/test_tz.py:203
↓ 10 callers
Method
_gettz_context
(self, tzname)
tests/test_tz.py:206
↓ 10 callers
Function
add_tzstr_tests
(tzstr, test_cases, varying=True)
tests/test_tzfile.py:1107
↓ 10 callers
Method
assertPicklable
Assert that an object can be pickled and unpickled. This assertion assumes that the desired behavior is that the unpickled object is
tests/_common.py:150
↓ 10 callers
Method
gettz
(self, tzname)
tests/test_tz.py:200
↓ 8 callers
Method
exdate
Include the given datetime instance in the recurrence set exclusion list. Dates included that way will not be generated, even
src/dateutil/rrule.py:1391
↓ 8 callers
Method
parse
Parse the date/time string into a :class:`datetime.datetime` object. :param timestr: Any date/time string using the supp
src/dateutil/parser/_parser.py:566
↓ 8 callers
Method
rdate
Include the given :py:class:`datetime` instance in the recurrence set generation.
src/dateutil/rrule.py:1377
↓ 7 callers
Method
_testEST
(self, start, test_type, tzc=None)
tests/test_tz.py:1929
↓ 7 callers
Method
exrule
Include the given rrule instance in the recurrence set exclusion list. Dates which are part of the given recurrence rules will not
src/dateutil/rrule.py:1383
↓ 6 callers
Method
_get_ambig_error_tzinfo
(self, dt_start, dt_end, dst_only=False)
tests/test_tz.py:2638
↓ 6 callers
Method
_get_no_support_tzinfo
(self, dt_start, dt_end, dst_only=False)
tests/test_tz.py:2553
↓ 6 callers
Function
_isoparse_date_and_time
(dt, date_fmt, time_fmt, tzoffset, microsecond_precision=None)
tests/test_isoparser.py:68
↓ 6 callers
Method
_testMultizone
(self, start, test_type)
tests/test_tz.py:1979
↓ 6 callers
Method
_test_ambiguous_time
(self, dt, tzid, ambiguous)
tests/test_tz.py:368
↓ 6 callers
Method
_test_imaginary_time
(self, dt, tzid, exists)
tests/test_tz.py:404
↓ 6 callers
Method
assert_equal_same_tz
(self, dt1, dt2)
tests/test_parser.py:351
↓ 6 callers
Function
enfold
Returns a datetime with the ``fold`` attribute set to ``fold``. :param fold: The value for the ``fold`` attribute, either 0 or 1. :r
src/dateutil/tz/_common.py:14
↓ 6 callers
Method
get_args
(self, tzname)
tests/test_tz.py:456
↓ 6 callers
Method
get_utc_transitions
(self, tzi, year, gap)
tests/test_tz.py:469
↓ 6 callers
Method
normalized
Return a version of this object represented entirely using integer values for the relative attributes. >>> relativedelta(day
src/dateutil/relativedelta.py:284
↓ 6 callers
Method
weekday
(self, name)
src/dateutil/parser/_parser.py:316
↓ 5 callers
Function
_keys
()
tests/test_tzpath_data.py:70
↓ 5 callers
Method
between
Returns all the occurrences of the rrule between after and before. The inc keyword defines what happens if after and/or before are th
src/dateutil/rrule.py:286
↓ 5 callers
Method
gettz
(self, name)
tests/test_tz.py:1246
↓ 5 callers
Method
instance
Alternate constructor that returns a fresh instance
src/dateutil/tz/_factories.py:19
↓ 5 callers
Function
roundtrip
(request)
tests/test_rrule.py:4919
↓ 5 callers
Method
transitions
For a given year, get the DST on and off transition times, expressed always on the standard time side. For zones with no transitions,
src/dateutil/tz/tz.py:427
↓ 5 callers
Function
zone_from_tzstr
Creates a zoneinfo file following a POSIX rule.
tests/test_tzfile.py:288
↓ 4 callers
Method
_find_trans
(self, dt, fold=None, timestamp=None)
src/dateutil/tz/_tzfile.py:287
↓ 4 callers
Method
_gettz_str
(self, tzname)
tests/test_tz.py:1870
↓ 4 callers
Method
_isdst
(self, dt, fold_naive=True)
src/dateutil/tz/tz.py:246
↓ 4 callers
Method
_parse_digits
Parse exactly ``n`` ASCII digits starting at ``pos``.
src/dateutil/parser/isoparser.py:204
↓ 4 callers
Method
_tzstr_dtstart_with_params
(self, tzname, param_str)
tests/test_tz.py:1873
↓ 4 callers
Function
assert_warned_from_this_file
The zoneinfo deprecation warning is attributed to the importing code.
tests/test_imports.py:58
↓ 4 callers
Method
before
Returns the last recurrence before the given datetime instance. The inc keyword defines what happens if dt is an occurrence. With
src/dateutil/rrule.py:206
↓ 4 callers
Method
convertyear
Converts two-digit years to year within [-50, 49] range of self._year (current local time)
src/dateutil/parser/_parser.py:354
↓ 4 callers
Function
easter
This method was ported from the work done by GM Arts, on top of the algorithm by Claus Tondering, which was based in part on the algorith
src/dateutil/easter.py:15
↓ 4 callers
Method
get
Wrapper for :func:`ZoneInfoFile.zones.get`. This is a convenience method for retrieving zones from the zone dictionary. :par
src/dateutil/zoneinfo/__init__.py:114
↓ 4 callers
Method
rebuild
(self, year, month)
src/dateutil/rrule.py:1138
↓ 4 callers
Method
utcoffset
(self, dt)
src/dateutil/tz/_common.py:185
↓ 3 callers
Method
_find_comp
(self, dt)
src/dateutil/tz/tz.py:606
↓ 3 callers
Method
_get_local_timestamp
(self, dt)
src/dateutil/tz/_tzfile.py:336
↓ 3 callers
Function
_gettz
(key)
tests/test_tz.py:2815
↓ 3 callers
Method
_invalidate_cache
(self)
src/dateutil/rrule.py:130
↓ 3 callers
Method
_isdst
(self, dt)
src/dateutil/tz/_common.py:266
↓ 3 callers
Function
_load_timedelta
(seconds)
src/dateutil/tz/_tzfile.py:34
↓ 3 callers
Function
_make_fake_tzpath
Populate a directory the way a zoneinfo installation is laid out.
tests/test_tzfile.py:2422
↓ 3 callers
Function
_post_epoch_days_before_year
Get the number of days between 1970-01-01 and YEAR-01-01
src/dateutil/tz/_tzfile.py:1205
↓ 3 callers
Function
_probe_instants
Instants (in UTC) around the interesting parts of a zone.
tests/test_tzpath_data.py:46
↓ 3 callers
Function
_sub_minute_zone
()
tests/test_tzfile.py:2531
↓ 3 callers
Method
_testTzFunc
This generates tests about how the behavior of a function ``func`` changes between STD and DST (e.g. utcoffset, tzname, dst).
tests/test_tz.py:889
↓ 3 callers
Function
_valid_tzif_data
()
tests/test_tzfile.py:1905
↓ 3 callers
Method
after
Returns the first recurrence after the given datetime instance. The inc keyword defines what happens if dt is an occurrence. With
src/dateutil/rrule.py:227
↓ 3 callers
Method
hms
(self, name)
src/dateutil/parser/_parser.py:330
↓ 3 callers
Method
parse_isodate
Parse the date portion of an ISO string. :param datestr: The string portion of an ISO string, without a separator
src/dateutil/parser/isoparser.py:147
↓ 3 callers
Method
parse_isotime
Parse the time portion of an ISO string. :param timestr: The time portion of an ISO string, without a separator
src/dateutil/parser/isoparser.py:164
↓ 3 callers
Function
transition_examples
()
tests/test_tzfile.py:572
↓ 3 callers
Method
transitions
(self, year)
src/dateutil/tz/_tzfile.py:1051
↓ 3 callers
Function
tz_source_context
A context manager that makes ``source`` the only time zone data.
tests/_common.py:97
↓ 2 callers
Method
__init__
(self, freq, dtstart=None, interval=1, wkst=None, count=None, until=None, bysetpos=None,
src/dateutil/rrule.py:443
↓ 2 callers
Method
__init__
(self, s, posix_offset=False)
src/dateutil/tz/tz.py:508
↓ 2 callers
Method
__radd__
(self, other)
src/dateutil/relativedelta.py:406
↓ 2 callers
Method
__reduce_ex__
(self, protocol)
src/dateutil/rrule.py:98
↓ 2 callers
Method
_adjust_ampm
(self, hour, ampm)
src/dateutil/parser/_parser.py:1086
↓ 2 callers
Function
_from_timestamp
(ts)
tests/test_tzpath_data.py:38
↓ 2 callers
Method
_get_hasdst
(self)
src/dateutil/tz/win.py:195
↓ 2 callers
Method
_get_no_support_tzinfo_class
(self, dt_start, dt_end, dst_only=False)
tests/test_tz.py:2529
↓ 2 callers
Method
_get_trans_info_fromutc_near_new_year
(self, ts, year)
src/dateutil/tz/_tzfile.py:1123
↓ 2 callers
Method
_gettz_str_tuple
(self, tzname)
tests/test_tz.py:1781
↓ 2 callers
Method
_iter
(self)
src/dateutil/rrule.py:791
↓ 2 callers
Function
_list_with_timeout
(iterable, timeout=5)
tests/test_rrule.py:5097
↓ 2 callers
Method
_load_from_data
(self, data)
src/dateutil/tz/_tzfile.py:403
↓ 2 callers
Function
_load_tzdata_keys
()
src/dateutil/_tzdata_impl.py:65
↓ 2 callers
Method
_naive_is_dst
(self, dt)
src/dateutil/tz/tz.py:242
↓ 2 callers
Method
_naive_isdst
(self, dt, transitions)
src/dateutil/tz/_common.py:287
↓ 2 callers
Method
_near_new_year
Whether ts is close enough to the new year that the rules for the previous or next year might matter.
src/dateutil/tz/_tzfile.py:1056
↓ 2 callers
Function
_open_binary
(package: str, resource: str)
src/dateutil/_tzdata_impl.py:27
↓ 2 callers
Method
_parse_isodate
(self, dt_str)
src/dateutil/parser/isoparser.py:213
↓ 2 callers
Method
_parse_isotime
(self, timestr)
src/dateutil/parser/isoparser.py:337
↓ 2 callers
Method
_parse_min_sec
(self, value)
src/dateutil/parser/_parser.py:1093
↓ 2 callers
Method
_parse_tzstr
(self, tzstr, zero_as_utc=True)
src/dateutil/parser/isoparser.py:390
↓ 2 callers
Method
_parsems
Parse a I[.F] seconds value into (seconds, microseconds).
src/dateutil/parser/_parser.py:1127
next →
1–100 of 1,660, ranked by callers