MCPcopy Create free account

hub / github.com/dateutil/dateutil / functions

Functions1,660 in github.com/dateutil/dateutil

↓ 228 callersMethod_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 callersFunctionparse
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 callersMethodgettz
(self, tzname)
tests/test_tz.py:1494
↓ 77 callersMethodreplace
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 callersMethodappend
(self, val, label=None)
src/dateutil/parser/_parser.py:422
↓ 49 callersMethodutcoffset
(self, dt)
tests/test_tz.py:2534
↓ 41 callersMethodtzname
(self, dt)
src/dateutil/tz/tz.py:72
↓ 37 callersFunctionconstruct_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 callersMethodtzoffset
(self, name)
src/dateutil/parser/_parser.py:348
↓ 23 callersMethodget
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 callersFunctionset_tzpath
(tzpath, block_tzdata=False, clear_cache=True)
tests/_common.py:39
↓ 22 callersMethodread
(self, *args)
tests/test_tzfile.py:1562
↓ 22 callersMethodsplit
(cls, s)
src/dateutil/parser/_parser.py:194
↓ 21 callersMethodrrule
Include the given :py:class:`rrule` instance in the recurrence set generation.
src/dateutil/rrule.py:1371
↓ 19 callersMethoddst
(self, dt)
tests/test_tz.py:2543
↓ 16 callersMethodcache_clear
(self)
src/dateutil/tz/tz.py:1014
↓ 13 callersMethodcount
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 callersMethod_get_tzname
(self, tzname)
tests/test_tz.py:203
↓ 10 callersMethod_gettz_context
(self, tzname)
tests/test_tz.py:206
↓ 10 callersFunctionadd_tzstr_tests
(tzstr, test_cases, varying=True)
tests/test_tzfile.py:1107
↓ 10 callersMethodassertPicklable
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 callersMethodgettz
(self, tzname)
tests/test_tz.py:200
↓ 8 callersMethodexdate
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 callersMethodparse
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 callersMethodrdate
Include the given :py:class:`datetime` instance in the recurrence set generation.
src/dateutil/rrule.py:1377
↓ 7 callersMethod_testEST
(self, start, test_type, tzc=None)
tests/test_tz.py:1929
↓ 7 callersMethodexrule
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 callersMethod_get_ambig_error_tzinfo
(self, dt_start, dt_end, dst_only=False)
tests/test_tz.py:2638
↓ 6 callersMethod_get_no_support_tzinfo
(self, dt_start, dt_end, dst_only=False)
tests/test_tz.py:2553
↓ 6 callersFunction_isoparse_date_and_time
(dt, date_fmt, time_fmt, tzoffset, microsecond_precision=None)
tests/test_isoparser.py:68
↓ 6 callersMethod_testMultizone
(self, start, test_type)
tests/test_tz.py:1979
↓ 6 callersMethod_test_ambiguous_time
(self, dt, tzid, ambiguous)
tests/test_tz.py:368
↓ 6 callersMethod_test_imaginary_time
(self, dt, tzid, exists)
tests/test_tz.py:404
↓ 6 callersMethodassert_equal_same_tz
(self, dt1, dt2)
tests/test_parser.py:351
↓ 6 callersFunctionenfold
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 callersMethodget_args
(self, tzname)
tests/test_tz.py:456
↓ 6 callersMethodget_utc_transitions
(self, tzi, year, gap)
tests/test_tz.py:469
↓ 6 callersMethodnormalized
Return a version of this object represented entirely using integer values for the relative attributes. >>> relativedelta(day
src/dateutil/relativedelta.py:284
↓ 6 callersMethodweekday
(self, name)
src/dateutil/parser/_parser.py:316
↓ 5 callersFunction_keys
()
tests/test_tzpath_data.py:70
↓ 5 callersMethodbetween
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 callersMethodgettz
(self, name)
tests/test_tz.py:1246
↓ 5 callersMethodinstance
Alternate constructor that returns a fresh instance
src/dateutil/tz/_factories.py:19
↓ 5 callersFunctionroundtrip
(request)
tests/test_rrule.py:4919
↓ 5 callersMethodtransitions
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 callersFunctionzone_from_tzstr
Creates a zoneinfo file following a POSIX rule.
tests/test_tzfile.py:288
↓ 4 callersMethod_find_trans
(self, dt, fold=None, timestamp=None)
src/dateutil/tz/_tzfile.py:287
↓ 4 callersMethod_gettz_str
(self, tzname)
tests/test_tz.py:1870
↓ 4 callersMethod_isdst
(self, dt, fold_naive=True)
src/dateutil/tz/tz.py:246
↓ 4 callersMethod_parse_digits
Parse exactly ``n`` ASCII digits starting at ``pos``.
src/dateutil/parser/isoparser.py:204
↓ 4 callersMethod_tzstr_dtstart_with_params
(self, tzname, param_str)
tests/test_tz.py:1873
↓ 4 callersFunctionassert_warned_from_this_file
The zoneinfo deprecation warning is attributed to the importing code.
tests/test_imports.py:58
↓ 4 callersMethodbefore
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 callersMethodconvertyear
Converts two-digit years to year within [-50, 49] range of self._year (current local time)
src/dateutil/parser/_parser.py:354
↓ 4 callersFunctioneaster
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 callersMethodget
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 callersMethodrebuild
(self, year, month)
src/dateutil/rrule.py:1138
↓ 4 callersMethodutcoffset
(self, dt)
src/dateutil/tz/_common.py:185
↓ 3 callersMethod_find_comp
(self, dt)
src/dateutil/tz/tz.py:606
↓ 3 callersMethod_get_local_timestamp
(self, dt)
src/dateutil/tz/_tzfile.py:336
↓ 3 callersFunction_gettz
(key)
tests/test_tz.py:2815
↓ 3 callersMethod_invalidate_cache
(self)
src/dateutil/rrule.py:130
↓ 3 callersMethod_isdst
(self, dt)
src/dateutil/tz/_common.py:266
↓ 3 callersFunction_load_timedelta
(seconds)
src/dateutil/tz/_tzfile.py:34
↓ 3 callersFunction_make_fake_tzpath
Populate a directory the way a zoneinfo installation is laid out.
tests/test_tzfile.py:2422
↓ 3 callersFunction_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 callersFunction_probe_instants
Instants (in UTC) around the interesting parts of a zone.
tests/test_tzpath_data.py:46
↓ 3 callersFunction_sub_minute_zone
()
tests/test_tzfile.py:2531
↓ 3 callersMethod_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 callersFunction_valid_tzif_data
()
tests/test_tzfile.py:1905
↓ 3 callersMethodafter
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 callersMethodhms
(self, name)
src/dateutil/parser/_parser.py:330
↓ 3 callersMethodparse_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 callersMethodparse_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 callersFunctiontransition_examples
()
tests/test_tzfile.py:572
↓ 3 callersMethodtransitions
(self, year)
src/dateutil/tz/_tzfile.py:1051
↓ 3 callersFunctiontz_source_context
A context manager that makes ``source`` the only time zone data.
tests/_common.py:97
↓ 2 callersMethod__init__
(self, freq, dtstart=None, interval=1, wkst=None, count=None, until=None, bysetpos=None,
src/dateutil/rrule.py:443
↓ 2 callersMethod__init__
(self, s, posix_offset=False)
src/dateutil/tz/tz.py:508
↓ 2 callersMethod__radd__
(self, other)
src/dateutil/relativedelta.py:406
↓ 2 callersMethod__reduce_ex__
(self, protocol)
src/dateutil/rrule.py:98
↓ 2 callersMethod_adjust_ampm
(self, hour, ampm)
src/dateutil/parser/_parser.py:1086
↓ 2 callersFunction_from_timestamp
(ts)
tests/test_tzpath_data.py:38
↓ 2 callersMethod_get_hasdst
(self)
src/dateutil/tz/win.py:195
↓ 2 callersMethod_get_no_support_tzinfo_class
(self, dt_start, dt_end, dst_only=False)
tests/test_tz.py:2529
↓ 2 callersMethod_get_trans_info_fromutc_near_new_year
(self, ts, year)
src/dateutil/tz/_tzfile.py:1123
↓ 2 callersMethod_gettz_str_tuple
(self, tzname)
tests/test_tz.py:1781
↓ 2 callersMethod_iter
(self)
src/dateutil/rrule.py:791
↓ 2 callersFunction_list_with_timeout
(iterable, timeout=5)
tests/test_rrule.py:5097
↓ 2 callersMethod_load_from_data
(self, data)
src/dateutil/tz/_tzfile.py:403
↓ 2 callersFunction_load_tzdata_keys
()
src/dateutil/_tzdata_impl.py:65
↓ 2 callersMethod_naive_is_dst
(self, dt)
src/dateutil/tz/tz.py:242
↓ 2 callersMethod_naive_isdst
(self, dt, transitions)
src/dateutil/tz/_common.py:287
↓ 2 callersMethod_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 callersFunction_open_binary
(package: str, resource: str)
src/dateutil/_tzdata_impl.py:27
↓ 2 callersMethod_parse_isodate
(self, dt_str)
src/dateutil/parser/isoparser.py:213
↓ 2 callersMethod_parse_isotime
(self, timestr)
src/dateutil/parser/isoparser.py:337
↓ 2 callersMethod_parse_min_sec
(self, value)
src/dateutil/parser/_parser.py:1093
↓ 2 callersMethod_parse_tzstr
(self, tzstr, zero_as_utc=True)
src/dateutil/parser/isoparser.py:390
↓ 2 callersMethod_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