MCPcopy Create free account
hub / github.com/Boris-code/feapder / get_current_date

Function get_current_date

feapder/utils/tools.py:1429–1431  ·  view source on GitHub ↗
(date_format="%Y-%m-%d %H:%M:%S")

Source from the content-addressed store, hash-verified

1427
1428
1429def get_current_date(date_format="%Y-%m-%d %H:%M:%S"):
1430 return datetime.datetime.now().strftime(date_format)
1431 # return time.strftime(date_format, time.localtime(time.time()))
1432
1433
1434def get_date_number(year=None, month=None, day=None):

Callers 1

format_timeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected