MCPcopy Create free account
hub / github.com/danfengcao/binlog2sql / is_valid_datetime

Function is_valid_datetime

binlog2sql/binlog2sql_util.py:24–29  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

22
23
24def is_valid_datetime(string):
25 try:
26 datetime.datetime.strptime(string, "%Y-%m-%d %H:%M:%S")
27 return True
28 except:
29 return False
30
31
32def create_unique_file(filename):

Callers 2

command_line_argsFunction · 0.85

Calls

no outgoing calls

Tested by 1