904e72663b634ce65641c3c99e2219e91aefc671,hyperspy/misc/date_time_tools.py,,update_date_time_in_metadata,#Any#Any#,96
Before Change
time = "%s" % sp[1].split("+")[0]
time_zone = "+%s" % sp[1].split("+")[1]
elif "-" in sp[1]:
time = "%s" % sp[1].split("-")[0]
time_zone = "-%s" % sp[1].split("-")[1]
if isinstance(dt, datetime.datetime):
date = dt.date().isoformat()
time = dt.time().isoformat()
After Change
time_zone = None
if isinstance(dt, str):
dt = parser.parse(dt)
if isinstance(dt, np.datetime64):
dt_split = np.datetime_as_string(dt).split("T")
date = dt_split[0]
time = dt_split[1]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: hyperspy/hyperspy
Commit Name: 904e72663b634ce65641c3c99e2219e91aefc671
Time: 2017-01-10
Author: eric.prestat@gmail.com
File Name: hyperspy/misc/date_time_tools.py
Class Name:
Method Name: update_date_time_in_metadata
Project Name: mindsdb/mindsdb
Commit Name: 3c8bfbcdc608b0a868e655d647da3c8a33aa7449
Time: 2020-07-23
Author: stpmax@yandex.ru
File Name: mindsdb/api/mysql/mysql_proxy/classes/sql_query.py
Class Name: SQLQuery
Method Name: parse_insert
Project Name: UFAL-DSG/tgen
Commit Name: 09d03aa686666917a3ff4fb7347a99f87cb669e3
Time: 2016-11-24
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/data.py
Class Name: DA
Method Name: parse