MCPcopy Index your code
hub / github.com/python/cpython / strftime

Method strftime

Lib/_pydatetime.py:1111–1119  ·  view source on GitHub ↗

Format using strftime(). Example: "%d/%m/%Y, %H:%M:%S" For a list of supported format codes, see the documentation: https://docs.python.org/3/library/datetime.html#format-codes

(self, format)

Source from the content-addressed store, hash-verified

1109 self._day, self._year)
1110
1111 def strftime(self, format):
1112 """
1113 Format using strftime().
1114
1115 Example: "%d/%m/%Y, %H:%M:%S"
1116 For a list of supported format codes, see the documentation:
1117 https://docs.python.org/3/library/datetime.html#format-codes
1118 """
1119 return _wrap_strftime(self, format, self.timetuple())
1120
1121 def __format__(self, fmt):
1122 if not isinstance(fmt, str):

Callers 13

__format__Method · 0.95
package_versionFunction · 0.45
package_versionFunction · 0.45
_mesgMethod · 0.45
Time2InternaldateFunction · 0.45
__calc_am_pmMethod · 0.45
__calc_alt_digitsMethod · 0.45
__calc_date_timeMethod · 0.45
__find_month_formatMethod · 0.45
__find_weekday_formatMethod · 0.45
_need_normalize_centuryFunction · 0.45
_wrap_strftimeFunction · 0.45

Calls 2

timetupleMethod · 0.95
_wrap_strftimeFunction · 0.85

Tested by

no test coverage detected