当前位置:网站首页>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)
边栏推荐
- I can't stand the common annotations of idea anymore
- Interpretation of the earliest sketches - image translation work sketchygan
- arcgis_ spatialjoin
- 并查集理论讲解和代码实现
- 二分查找(折半查找)
- Literacy Ethernet MII interface types Daquan MII, RMII, smii, gmii, rgmii, sgmii, XGMII, XAUI, rxaui
- [tf1] save and load parameters
- Ros2 - configuration development environment (V)
- Three body goal management notes
- Basic series of SHEL script (I) variables
猜你喜欢
PHY drive commissioning - phy controller drive (II)
Netease to B, soft outside, hard in
iNFTnews | 喝茶送虚拟股票?浅析奈雪的茶“发币”
Light up the running light, rough notes for beginners (1)
SD_ CMD_ SEND_ SHIFT_ REGISTER
[untitled]
Target detection series - detailed explanation of the principle of fast r-cnn
Hdu1231 maximum continuous subsequence (divide and conquer or dynamic gauge or double pointer)
Powermanagerservice (I) - initialization
An article was opened to test the real situation of outsourcing companies
随机推荐
Don't confuse the use difference between series / and / *
IPage can display data normally, but total is always equal to 0
【Node】npm、yarn、pnpm 区别
Implementation of one-dimensional convolutional neural network CNN based on FPGA (VIII) implementation of activation layer
Do you choose pandas or SQL for the top 1 of data analysis in your mind?
Batch convert txt to excel format
Executealways of unity is replacing executeineditmode
Hdu1232 unimpeded project (and collection)
Basic series of SHEL script (I) variables
Ros2 - Service Service (IX)
SD_ CMD_ SEND_ SHIFT_ REGISTER
苏打粉是什么?
Tshydro tool
Course learning accumulation ppt
DataGrid offline installation of database driver
D2L installation
Database SQL practice 4. Find the last of employees in all assigned departments_ Name and first_ name
二分查找(折半查找)
[vscode] recommended plug-ins
The problem of configuring opencv in qt5.13.2 is solved in detail