MCPcopy
hub / github.com/wechatpy/wechatpy / _to_date_str

Method _to_date_str

wechatpy/client/api/datacube.py:15–21  ·  view source on GitHub ↗
(cls, date)

Source from the content-addressed store, hash-verified

13
14 @classmethod
15 def _to_date_str(cls, date):
16 if isinstance(date, (datetime.datetime, datetime.date)):
17 return date.strftime('%Y-%m-%d')
18 elif isinstance(date, six.string_types):
19 return date
20 else:
21 raise ValueError('Can not convert %s type to str', type(date))
22
23 def get_user_summary(self, begin_date, end_date):
24 """

Callers 15

get_user_summaryMethod · 0.95
get_user_cumulateMethod · 0.95
get_interface_summaryMethod · 0.95
get_article_summaryMethod · 0.95
get_article_totalMethod · 0.95
get_user_readMethod · 0.95
get_user_read_hourMethod · 0.95
get_user_shareMethod · 0.95
get_user_share_hourMethod · 0.95
get_upstream_msgMethod · 0.95
get_upstream_msg_hourMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected