8cc4901e0ca4539c8f6a3db592f86a074c64f432,plantcv/parallel/parsers.py,,_check_date_range,#,215

Before Change


    

    // Convert image datetime to unix time
    timestamp = dt_parser(img_time.replace("-", ""))
    time_delta = timestamp - datetime.datetime(1970, 1, 1)
    unix_time = (time_delta.days * 24 * 3600) + time_delta.seconds
    // Does the image date-time fall outside or inside the included range
    if unix_time < start_date or unix_time > end_date:
        return False

After Change


    

    // Convert image datetime to unix time
    img_time = img_time.replace("-", "").replace("_", "")
    timestamp = dt_parser(img_time)
    time_delta = timestamp - datetime.datetime(1970, 1, 1)
    unix_time = (time_delta.days * 24 * 3600) + time_delta.seconds
    // Does the image date-time fall outside or inside the included range
    if unix_time < start_date or unix_time > end_date:
        return False
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: danforthcenter/plantcv
Commit Name: 8cc4901e0ca4539c8f6a3db592f86a074c64f432
Time: 2019-10-23
Author: dominik.schneider@wsu.edu
File Name: plantcv/parallel/parsers.py
Class Name:
Method Name: _check_date_range


Project Name: broadinstitute/gtex-pipeline
Commit Name: f6b9e716d6f3381aa9ee499078c1860936456445
Time: 2019-11-17
Author: francois@broadinstitute.org
File Name: gene_model/collapse_annotation.py
Class Name: Annotation
Method Name: __init__


Project Name: gooofy/zamia-speech
Commit Name: c7997578ebd8f43b4d4858c99f997f8ef03a1bf9
Time: 2017-10-16
Author: guenter@zamia.org
File Name: speech_kaldi_export.py
Class Name:
Method Name: