calendar.set(year, month, day, day, minute);
应改为
calendar.set(year, month, day, hour, minute);写错了,呵呵,但1291138110095与1288578570096的差距仍然是太大了啊
应改为
calendar.set(year, month, day, hour, minute);写错了,呵呵,但1291138110095与1288578570096的差距仍然是太大了啊
解决方案 »
- nor current process has android.permission.WRITE_APN_SETTINGS崩溃问题 android4.0系统问题
- 能不能给GridView的每一行单独设置列数? 急急急!
- 布局问题,RadioGroup in RelativeLayout
- Android开发 strings.xml里面定义了两个array,获取第二个以后会报错
- 文件管理器 实现复制
- 程序如何知道当前的apk包是不是处于debuggable
- Android下 可以使用 apache的poi包么?
- 客户端是用Volley传参,到后台怎么接收?
- Android APP应用不能连接wifi访问API
- 为什么android的技术文档这么烂?
- android 背景灯调节api
- 询问如何拨号
Since: API Level 1 This constructor is deprecated.
use GregorianCalendar(int, int, int, int, int) Constructs a new Date initialized to the specified date and time in the default TimeZone.Parameters
year the year, 0 is 1900.
month the month, 0 - 11.
day the day of the month, 1 - 31.
hour the hour of day, 0 - 23.
minute the minute of the hour, 0 - 59.
不好意思,看了api之后才明后了,呵呵
Calendar是jdk1.1增加的,侧重日历时间,便于国际化时间,是系统推荐使用的。
JAVA的Date类与Calendar类比较
http://sy19861216.javaeye.com/blog/665456