MCPcopy
hub / github.com/python-pendulum/pendulum / date

Function date

src/pendulum/__init__.py:188–192  ·  view source on GitHub ↗

Create a new Date instance.

(year: int, month: int, day: int)

Source from the content-addressed store, hash-verified

186
187
188def date(year: int, month: int, day: int) -> Date:
189 """
190 Create a new Date instance.
191 """
192 return Date(year, month, day)
193
194
195def time(hour: int, minute: int = 0, second: int = 0, microsecond: int = 0) -> Time:

Callers 15

instanceFunction · 0.85
__new__Method · 0.85
__init__Method · 0.85
addMethod · 0.85
_parse_commonFunction · 0.85
test_instance_with_dateFunction · 0.85
test_combineFunction · 0.85
dFunction · 0.85
test_subtractionFunction · 0.85
test_equal_to_trueFunction · 0.85
test_equal_to_falseFunction · 0.85
test_not_equal_to_trueFunction · 0.85

Calls 1

DateClass · 0.90

Tested by 15

test_instance_with_dateFunction · 0.68
test_combineFunction · 0.68
dFunction · 0.68
test_subtractionFunction · 0.68
test_equal_to_trueFunction · 0.68
test_equal_to_falseFunction · 0.68
test_not_equal_to_trueFunction · 0.68
test_not_equal_to_falseFunction · 0.68
test_greater_than_trueFunction · 0.68
test_greater_than_falseFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…