Test.7Time
来源:互联网 发布:2016校园暴力事件数据 编辑:程序博客网 时间:2024/06/05 00:45
package DQSJ;
import java.util.*;
public class TIME {
public static void main(String[] args){
Date nowTime=new Date();
System.out.println(nowTime);
String pattern="%tY-%<tm-%<td(%<tA) %<tT";
String s=String.format(pattern,nowTime);
System.out.println(s);
Calendar calendar=Calendar.getInstance();
calendar.set(2010,11,21,03,25,39);
s=String.format("%tY年%<tb%<td日(%<tT),所在时区%<tz与GMT相差:%<tz小时",calendar);
System.out.println(s);
}
}
import java.util.*;
public class TIME {
public static void main(String[] args){
Date nowTime=new Date();
System.out.println(nowTime);
String pattern="%tY-%<tm-%<td(%<tA) %<tT";
String s=String.format(pattern,nowTime);
System.out.println(s);
Calendar calendar=Calendar.getInstance();
calendar.set(2010,11,21,03,25,39);
s=String.format("%tY年%<tb%<td日(%<tT),所在时区%<tz与GMT相差:%<tz小时",calendar);
System.out.println(s);
}
}
阅读全文
0 0
- Test.7Time
- test for time.h
- time test using microtime()
- real time performance test
- real time performance test
- Test running time in Linux
- ubuntu udhcp, lease time test
- libevent例子:time-test.c
- The first time--write a test spec.
- Amr and Chemistry time limit per test
- Java Test network connection and set TimeOut time length
- time stamp log function test with variable argument
- English Time 7
- <7> go time定时器
- time
- time
- TIME
- Time
- Spring Boot -- Spring的任务调度Spring Task
- Oracle dataguard一主两备环境搭建
- 大部分人都会做错的经典JS闭包题
- Virtual Box 后台运行虚拟机
- php中四种webservice实现的简单架构方法及实例
- Test.7Time
- 数据库结构优化
- 学习An introduction to machine learning with scikit-learn笔记
- XCode9的新变化
- FATAL namenode.NameNode: Exception in namenode join java.lang.ExceptionInInitializerError
- 数组中重复的数字
- MUI 拍照和从系统相册选择图片上传
- git中Please enter a commit message to explain why this merge is necessary
- 从Mysql官网下载mysql.tar.gz版本的安装包