示例#1
0
def parse_all_fields(year_col, month_col, day_col, hour_col, minute_col,
                     second_col):
    year_col = _maybe_cast(year_col)
    month_col = _maybe_cast(month_col)
    day_col = _maybe_cast(day_col)
    hour_col = _maybe_cast(hour_col)
    minute_col = _maybe_cast(minute_col)
    second_col = _maybe_cast(second_col)
    return lib.try_parse_datetime_components(year_col, month_col, day_col,
                                             hour_col, minute_col, second_col)
def parse_all_fields(year_col, month_col, day_col, hour_col, minute_col,
                     second_col):
    year_col = _maybe_cast(year_col)
    month_col = _maybe_cast(month_col)
    day_col = _maybe_cast(day_col)
    hour_col = _maybe_cast(hour_col)
    minute_col = _maybe_cast(minute_col)
    second_col = _maybe_cast(second_col)
    return lib.try_parse_datetime_components(year_col, month_col, day_col,
                                             hour_col, minute_col, second_col)
示例#3
0
def parser_fast(DD, MM, YY, HH, NN, SS):
    """
    Another datetime parser
    """
    YY = _maybe_cast(YY)
    MM = _maybe_cast(MM)
    DD = _maybe_cast(DD)
    HH = _maybe_cast(HH)
    NN = _maybe_cast(NN)
    SS = _maybe_cast(SS)
    return lib.try_parse_datetime_components(YY + 2000, MM, DD, HH, NN, SS)