Date 时间函数的使用
来源:互联网 发布:java 读取usb接口数据 编辑:程序博客网 时间:2024/05/16 16:16
package date;import java.util.Date;public class Test01 {public static void main(String[] args) {Date d = new Date();System.out.println(d);//如果不传值就返回一个系统当前时间//传一个long类型的值,也就是自定义值long t = 45642312;Date t1 = new Date(t);System.out.println(t1); long tt = System.currentTimeMillis();Date tt1 = new Date(tt);t1.setTime(tt);System.out.println(tt1); //System.out.println(before());System.out.println(t1.getTime());System.out.println(d.getTime());}}
0 0
- Date 时间函数的使用
- PHP 时间的获取和使用 date()和strtotime()函数
- 字符串时间实现使用Date类型的函数思路
- PHP的日期时间函数date()
- PHP的日期时间函数date()
- PHP的日期时间函数date()
- PHP的日期时间函数date()
- PHP的日期时间函数date()
- PHP的日期时间函数date()
- PHP的日期时间函数date()
- 详解PHP的日期时间函数date()
- 详解PHP的日期时间函数date
- Java Date函数的时间格式
- Date() 时间的一个 format 格式化函数
- PHP函数之日期时间函数date()使用详解
- PHP函数之日期时间函数date()使用详解
- date 时间函数
- 日期时间函数date()
- cocos2dx 字体
- 优化Myeclipse10 Building Workspace速度慢等问题
- MH370客机搜索有可能从残骸上取得突破
- Java swing 之边界布局
- MongoDB MapReduce java使用
- Date 时间函数的使用
- 高斯滤波
- codeforces B. Spreadsheets 计算excel的行列
- HDU1072
- Android UI开发专题
- 如何获取设备ID
- ubuntu install google chrome
- sql server 版本信息
- android.os.NetworkOnMainThreadException 和 java.lang.nullpointerexception