zoukankan
html css js c++ java
C# 中返回星期的函数
函数如下:
代入参数年y,月m,日d 即可返回所得的星期
public
static
string
getWeekDay(
int
y,
int
m,
int
d)
{
if(m==1) {m=13;y--;}
if(m==2) {m=14;y--;}
int
week
=
(d
+
2
*
m
+
3
*
(m
+
1
)
/
5
+
y
+
y
/
4
-
y
/
100
+
y
/
400
)
%
7
+
1
;
string
strweek
=
""
;
switch
(week)
{
case
1
:
strweek
=
"
星期一
"
;
break
;
case
2
:
strweek
=
"
星期二
"
;
break
;
case
3
:
strweek
=
"
星期三
"
;
break
;
case
4
:
strweek
=
"
星期四
"
;
break
;
case
5
:
strweek
=
"
星期五
"
;
break
;
case
6
:
strweek
=
"
星期六
"
;
break
;
case
7
:
strweek
=
"
星期日
"
;
break
;
}
return
strweek;
}
查看全文
相关阅读:
sort_action
jedis
ClassNotFoundException
mysql-test-run.pl
mysql 5.6 bug
The basic principle of test case 修改引擎
mysql 执行计划走索引
mysql 执行计划走索引
14.1.2 Checking InnoDB Availability 检查InnoDB 可用性:
14.1.2 Checking InnoDB Availability 检查InnoDB 可用性:
原文地址:https://www.cnblogs.com/conquer/p/819026.html
最新文章
存储引擎 查询引擎 去耦合
Use Apache HBase™ when you need random, realtime read/write access to your Big Data.
DevOps
5 Ways to Make Your Hive Queries Run Faster
r squared
p value
spark streaming bathsize 5-2000ms storm 100ms
storm记录级容错 acker
three supported reliability levels: * End-to-end * Store on failure * Best effort
SPDY: An experimental protocol for a faster web HTTP/2
热门文章
Quick UDP Internet Connections
box cox
In Git, there are two main ways to integrate changes from one branch into another: the merge and the rebase.
5 Ways to Send Email From Linux Command Line
正态性检验
FICO credit score
lateral inhibition
当半导体的工艺制程走到7nm后
Splits a tensor into sub tensors
Markov and Chebyshev Inequalities and the Weak Law of Large Numbers
Copyright © 2011-2022 走看看