当前位置:网站首页>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)
边栏推荐
- Unconventional ending disconnected from the target VM, address: '127.0.0.1:62635', transport: 'socket‘
- Target detection series - detailed explanation of the principle of fast r-cnn
- Implementation of one-dimensional convolutional neural network CNN based on FPGA (VIII) implementation of activation layer
- golang定时器使用踩的坑:定时器每天执行一次
- Interpretation of the earliest sketches - image translation work sketchygan
- The problem of configuring opencv in qt5.13.2 is solved in detail
- [vscode] prohibit the pylance plug-in from automatically adding import
- list. files: List the Files in a Directory/Folder
- Import CV2 prompt importerror: libgl so. 1: Cannot open shared object file: no such file or directory
- What is sodium hydroxide?
猜你喜欢
随机推荐
ORACLE CREATE SEQUENCE,ALTER SEQUENCE,DROP SEQUENCE
第 2 章:小试牛刀,实现一个简单的Bean容器
Install deeptools in CONDA mode
And let's play dynamic proxy (extreme depth version)
Simple operation of nixie tube (keil5)
SD_ CMD_ SEND_ SHIFT_ REGISTER
611. 有效三角形的个数
【软件测试】03 -- 软件测试概述
Application of MATLAB in Linear Algebra (4): similar matrix and quadratic form
Target detection series - detailed explanation of the principle of fast r-cnn
【Node】nvm 版本管理工具
Qu'est - ce que l'hydroxyde de sodium?
并发编程 — 如何中断/停止一个运行中的线程?
Word import literature -mendeley
PHY drive commissioning - phy controller drive (II)
iNFTnews | 喝茶送虚拟股票?浅析奈雪的茶“发币”
IPage能正常显示数据,但是total一直等于0
M2DGR 多源多场景 地面机器人SLAM数据集
Ugnx12.0 initialization crash, initialization error (-15)
剑指 Offer 56 数组中数字出现的次数(异或)