根据日期得到生肖的ASP函数
程序员文章站
2023-08-24 11:56:11
根据生日时间返回所属生肖复制代码 代码如下:<% function zodiac(birthday) if&...
根据生日时间返回所属生肖
<%
function zodiac(birthday)
if isdate(birthday) then
birthyear = year(birthday)
zodiaclist = array("猴", "鸡", "狗", "猪", "鼠", "牛", "虎", "兔", "龙", "蛇", "马", "羊")
zodiac = zodiaclist(birthyear mod 12)
end if
end function
%>
复制代码 代码如下:
<%
function zodiac(birthday)
if isdate(birthday) then
birthyear = year(birthday)
zodiaclist = array("猴", "鸡", "狗", "猪", "鼠", "牛", "虎", "兔", "龙", "蛇", "马", "羊")
zodiac = zodiaclist(birthyear mod 12)
end if
end function
%>
上一篇: asp 读取文件和保存文件函数代码
下一篇: IOS开发(86)之旋转图形