Skip to content

DAYS函数计算错误 #54

@antporter

Description

@antporter
	Cell A1 = cells.get("A1");
	A1.setValue("2021-01-02 23:59:59");
	Cell B1 = cells.get("B1");
	B1.setValue("2021-01-02 00:00:00");
	String formula = "=DAYS(A1,B1)";
	Cell C1 = cells.get("C1");
	C1.setFormula(formula);
	wb.calculateFormula(true);
	System.out.println(C1.getValue());

计算结果为:1
而实际结果应该为:0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions