Location:
Search - GetSysTime
Search list
Description: 通过网络连接远程时间服务器,并获取权限自动更新本地电脑的时间-Through the network to connect a remote time server, and obtain permission to automatically update the local computer' s time
Platform: |
Size: 9216 |
Author: wangKX |
Hits:
Description: 每次开机获取当前系统时间,并记录在C盘中,以前是为了不在家时看小孩子是不是自觉不开电脑,我不设置密码。-Get the current system boot time every time, and recorded in the C plate, used to be in order not to see children at home is not consciously open the computer, I do not set a password.
Platform: |
Size: 16384 |
Author: 利刃 |
Hits:
Description: 使用JAVA编译的物业管理系统,部分代码:
package com.wy.util
import java.util.*
public class nowdate {
public static int getSystime() {
Calendar tt = Calendar.getInstance() //获取Calendar对象
Date time = tt.getTime() //获取日期
int year = time.getYear() + 1900 //获取年份
int month = time.getMonth() + 1 //获取月份
return year * 100 + month //组成数字
}
public static void main(String args[]) {
Calendar tt = Calendar.getInstance()
Date time = tt.getTime()
int year = time.getYear() + 1900
int month = time.getMonth() + 1
}
}-JAVA compiled using property management system, part of the code:
package com.wy.util
import java.util.*
public class nowdate {
public static int getSystime() {
Calendar tt = Calendar.getInstance() //获取Calendar对象
Date time = tt.getTime() //获取日期
int year = time.getYear()+ 1900 //获取年份
int month = time.getMonth()+ 1 //获取月份
return year* 100+ month //组成数字
}
public static void main(String args[]) {
Calendar tt = Calendar.getInstance()
Date time = tt.getTime()
int year = time.getYear()+ 1900
int month = time.getMonth()+ 1
}
}
Platform: |
Size: 839680 |
Author: john |
Hits: