package com.ttest2;

class test {
public int GetWeek(int y, int m, int d) {
if (m < 3) {
m += 12;
--y;
}
int w = (d + 1 + 2 * m + 3 * (m + 1) / 5 + y + (y >> 2) - y / 100 + y / 400) % 7;
return w;
}
}

public class Demo2 {
public static void main(String[] args) {

test t = new test();

System.out.println(t.GetWeek(2016, 6, 3));
}
}

相关文章:

  • 2021-07-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-09
  • 2022-12-23
  • 2021-11-29
猜你喜欢
  • 2021-09-02
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案