We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JDK版本: openjdk_17.0.9 hutool版本: 5.7.26(已在5.7.27测试过,问题依旧存在)(请确保最新尝试是否还有问题)
如下代码输出:
between1: 2332800 between2: 2332800 betweenFormat: 38分52秒
between希望可以加上符号表示区别,这样可以从判断日期大小转变成判断between跟0的值 formatBetween格式化精度丢失? formatBetween格式化可以自己传入符号表示单位吗?现在写死中文,可以用字母h m等
public static void main(String[] args) { String start = "2024-04-02 08:52:00"; String end = "2024-04-29 08:55:00"; long between1 = DateUtil.between(DateUtil.parseDate(end), DateUtil.parseDate(start), DateUnit.SECOND); System.out.println("between1: " + between1); long between2 = DateUtil.between(DateUtil.parseDate(start), DateUtil.parseDate(end), DateUnit.SECOND); System.out.println("between2: " + between2); String betweenFormat = DateUtil.formatBetween(between2, BetweenFormatter.Level.SECOND); System.out.println("betweenFormat: " + betweenFormat); }
The text was updated successfully, but these errors were encountered:
加上符号表示区别
parseDate
parse
Sorry, something went wrong.
No branches or pull requests
版本情况
JDK版本: openjdk_17.0.9
hutool版本: 5.7.26(已在5.7.27测试过,问题依旧存在)(请确保最新尝试是否还有问题)
问题描述(包括截图)
如下代码输出:
between希望可以加上符号表示区别,这样可以从判断日期大小转变成判断between跟0的值
formatBetween格式化精度丢失?
formatBetween格式化可以自己传入符号表示单位吗?现在写死中文,可以用字母h m等
没有报错
无
比如报错的Excel文件,有问题的图片等。
The text was updated successfully, but these errors were encountered: