Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
24
def
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
32
def
create_unique_file(filename):
Callers
2
test_is_valid_datetime
Method · 0.85
command_line_args
Function · 0.85
Calls
no outgoing calls
Tested by
1
test_is_valid_datetime
Method · 0.68