Git Product home page Git Product logo

Comments (4)

afkT avatar afkT commented on August 28, 2024

调用方法错啦

DateUtils.isInTimeHHmmss("07:00:01","07:00:01") :这个方法格式是 HH:mm:ss

DateUtils.isInTimeHHmm("07:00","07:00") :这个方法格式是 HH:mm

应该调用 DateUtils.isInTimeHHmm 方法

可以修改当前时间为 07:00 并且调用 DateUtils.isInTimeHHmm("07:00","07:00") 就能看到返回 true

但是 startTime 和 endTime 相同的情况,目前是没有进行判断的,因为涉及到具体时间判断有 DateUtils.isInDate() 方法

我可以下个版本加下这个处理。(当前版本你可以先自行判断是否一样,一样则直接返回 true)

from devutils.

Jasperben avatar Jasperben commented on August 28, 2024

上面写错了 就是
DateUtils.isInTimeHHmmss("07:00:00","07:00:00")返回false

from devutils.

afkT avatar afkT commented on August 28, 2024

上面写错了 就是
DateUtils.isInTimeHHmmss("07:00:00","07:00:00")返回false

目前是没有进行判断 startTime 和 endTime 相同的情况,得下个版本才能加上,可以在调用前自行判断 startTime 和 endTime 是否一样

from devutils.

afkT avatar afkT commented on August 28, 2024

好了,用这个(已同步至 Maven Central)

// DevApp Android 工具类库
implementation 'io.github.afkt:DevAppX:2.2.4'

from devutils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.