Comments (4)
调用方法错啦
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.
上面写错了 就是
DateUtils.isInTimeHHmmss("07:00:00","07:00:00")返回false
from devutils.
上面写错了 就是
DateUtils.isInTimeHHmmss("07:00:00","07:00:00")返回false
目前是没有进行判断 startTime 和 endTime 相同的情况,得下个版本才能加上,可以在调用前自行判断 startTime 和 endTime 是否一样
from devutils.
好了,用这个(已同步至 Maven Central)
// DevApp Android 工具类库
implementation 'io.github.afkt:DevAppX:2.2.4'
from devutils.
Related Issues (20)
- 建议加一个 WorkManager 封装工具类 HOT 1
- 发现demo在使用DevEnvironment过程中会出现如下问题 ,华为8.10 10.0.0 都有这个报错信息 HOT 1
- DevEnvironment 的DevEnvironmentActivity 界面显示错误 HOT 1
- 请问坐标系工具类里面通过两点的坐标系计算距离这个功能,是在哪个坐标体系下进行计算的?谷歌的?还是火星坐标系?还是百度坐标系 HOT 1
- 请问坐标系工具类里面通过两点的坐标系计算距离这个功能,是在哪个坐标体系下进行计算的?谷歌的?还是火星坐标系?还是百度坐标系?
- 截图工具类 HOT 2
- 建议加上获取可运行app列表的API HOT 1
- 版本适配库 HOT 24
- ava.lang.Exception: Toast callstack! HOT 2
- 狗都不用
- AlarmUtils.java HOT 2
- DEV工具类,是否有清除缓存和计算缓存大小的方法? HOT 2
- AppUtils HOT 2
- GsonUtils HOT 1
- 电池电量信息 HOT 1
- error: resource android:color/system_neutral2_500 not found
- JSON to Code报错问题 HOT 1
- 1
- 项目贡献
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devutils.