MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / to_date_string

Method to_date_string

src/pendulum/date.py:89–95  ·  view source on GitHub ↗

Format the instance as date. :rtype: str

(self)

Source from the content-addressed store, hash-verified

87 # String Formatting
88
89 def to_date_string(self) -> str:
90 """
91 Format the instance as date.
92
93 :rtype: str
94 """
95 return self.strftime("%Y-%m-%d")
96
97 def to_formatted_date_string(self) -> str:
98 """

Callers 3

test_to_date_stringFunction · 0.95
is_same_dayMethod · 0.80
test_to_date_stringFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_to_date_stringFunction · 0.76
test_to_date_stringFunction · 0.64