Skip to content

标准时间格式识别错误 #119

@Decruzzhang

Description

@Decruzzhang

public static void main(String[] args) {
//String time1 = "农历七月初十 14:54:24";
String time1 = "2023/12/01 14:54:24";

    List<TimeNLP> timeNLPs1 = TimeNLPUtil.parse(time1);
    TimeNLP.filterTimeUnit(timeNLPs1);
    System.out.println(timeNLPs1.get(0));
    System.out.println(timeNLPs1.get(timeNLPs1.size()-1));
}

OUT:
2023/12/01 ---> 2001-03-12 00:00:00
14:54:24 ---> 2001-03-12 14:54:24

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions