MCPcopy Index your code
hub / github.com/RustPython/RustPython / strftime

Method strftime

Lib/test/datetimetester.py:1659–1660  ·  view source on GitHub ↗
(self, format_spec)

Source from the content-addressed store, hash-verified

1657 # check that a derived class's strftime gets called
1658 class B(self.theclass):
1659 def strftime(self, format_spec):
1660 return 'B'
1661 b = B(2007, 9, 10)
1662 self.assertEqual(b.__format__(''), str(dt))
1663

Callers 15

format_datetimeFunction · 0.45
formatTimeMethod · 0.45
doRolloverMethod · 0.45
strftest1Method · 0.45
strftest2Method · 0.45
test_y_before_1900Method · 0.45
test_y_1900Method · 0.45
test_y_after_1900Method · 0.45
__format__Method · 0.45
test_issue127903Method · 0.45
local_february_nameMethod · 0.45
test_strftimeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected