当前位置:网站首页>Simple use of timeunit
Simple use of timeunit
2022-07-05 07:20:00 【Sun Tianyang】
The usual time
1.TimeUnit.DAYS // God
2.TimeUnit.HOURS // Hours
3.TimeUnit.MINUTES // minute
4.TimeUnit.SECONDS // second
5.TimeUnit.IlliSECONDS // millisecond
Time shift
1.public long toMillis(long d) // Convert to MS
2.public long toSeconds(long d) // Convert to seconds
3.public long toMinutes(long d) // transformational component
4.public long toHours(long d) // Convert to hours
5.public long toDays(long d) // Convert to day
Get system time
System.current.TimrMills();
Thread sleep 5 Second
TimeUnit.SECONDS.sleep(5)
边栏推荐
- CADD课程学习(5)-- 构建靶点已知的化合结构(ChemDraw)
- Using GEE plug-in in QGIS
- GPIO port bit based on Cortex-M3 and M4 with operation macro definition (can be used for bus input and output, STM32, aducm4050, etc.)
- PHY drive commissioning - phy controller drive (II)
- Now there are HTML files and MVC made with vs (connected to the database). How can they be connected?
- Mipi interface, DVP interface and CSI interface of camera
- Don't confuse the use difference between series / and / *
- [node] differences among NPM, yarn and pnpm
- 玩转gRPC—深入概念与原理
- window navicat连接阿里云服务器mysql步骤及常见问题
猜你喜欢
Import CV2 prompt importerror: libgl so. 1: Cannot open shared object file: no such file or directory
【软件测试】06 -- 软件测试的基本流程
M2DGR 多源多场景 地面机器人SLAM数据集
Light up the running light, rough notes for beginners (1)
Mathematical analysis_ Notes_ Chapter 8: multiple integral
【软件测试】03 -- 软件测试概述
Chapter 2: try to implement a simple bean container
Hdu1232 unimpeded project (and collection)
Do you choose pandas or SQL for the top 1 of data analysis in your mind?
Three body goal management notes
随机推荐
Do you choose pandas or SQL for the top 1 of data analysis in your mind?
ImportError: No module named ‘Tkinter‘
I can't stand the common annotations of idea anymore
C#学习笔记
【Node】nvm 版本管理工具
Anaconda navigator click open no response, can not start error prompt attributeerror: 'STR' object has no attribute 'get‘
npm install -g/--save/--save-dev的区别
并发编程 — 死锁排查及处理
Ros2 topic (VIII)
NPM and package common commands
苏打粉是什么?
Using GEE plug-in in QGIS
Install deeptools in CONDA mode
Don't confuse the use difference between series / and / *
并发编程 — 如何中断/停止一个运行中的线程?
[OBS] x264 Code: "buffer_size“
SOC_ SD_ CMD_ FSM
[software testing] 02 -- software defect management
Pytorch has been installed in anaconda, and pycharm normally runs code, but vs code displays no module named 'torch‘
Course learning accumulation ppt