小编use*_*076的帖子

GregorianCalendar在Java中返回错误的DAY_OF_WEEK

这段代码:

Calendar calendar;
calendar = GregorianCalendar.getInstance();
calendar.set(year, month, day);
week_day = calendar.get(Calendar.DAY_OF_WEEK);
Run Code Online (Sandbox Code Playgroud)

返回错误的值.

例如

  • 年= 2013年,月= 3,日= 31

返回相同的值

  • 年= 2013年,月= 4,日= 1.

我怎么能正确地做到这一点?

java calendar weekday dayofweek gregorian-calendar

3
推荐指数
1
解决办法
945
查看次数

Google Play 专题图下载

移动设备上的 Google Play 应用程序,在所选应用程序视图的顶部具有 Feature Graphic。

不幸的是,它没有显示在 play.google.com 网站上。例如https://play.google.com/store/apps/details?id=com.instagram.android

是否可以在不使用 Google Play 移动应用程序的情况下获取此图形?

感谢帮助。

mobile android google-play

3
推荐指数
1
解决办法
1280
查看次数