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

Function test_to_w3c_string

tests/datetime/test_strings.py:98–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96
97
98def test_to_w3c_string():
99 d = pendulum.datetime(1975, 12, 25, 14, 15, 16, tz="local")
100 assert d.to_w3c_string() == "1975-12-25T14:15:16-05:00"
101
102
103def test_to_string_invalid():

Callers

nothing calls this directly

Calls 2

to_w3c_stringMethod · 0.80
datetimeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…