'函数名:FormatTime
'作 用:时间
'参 数:DateTime ----要格式化的时间
' Format ----格式的形式
'****************************************************
Public Function FormatTime(DateTime,Format)
select case Format
case "1"
FormatTime=""&year(DateTime)&"年"&month(DateTime)&"月"&day(DateTime)&"日"
case "2"
FormatTime=""&month(DateTime)&"月"&day(DateTime)&"日"
case "3"
FormatTime=""&year(DateTime)&"/"&month(DateTime)&"/"&day(DateTime)&""
case "4"
FormatTime=""&month(DateTime)&"/"&day(DateTime)&""
case "5"
FormatTime=""&month(DateTime)&"月"&day(DateTime)&"日"&FormatDateTime(DateTime,4)&""
case "6"
temp="周日,周一,周二,周三,周四,周五,周六"
temp=split(temp,",")
FormatTime=temp(Weekday(DateTime)-1)
case Else
FormatTime=DateTime
end select
End Function
Public Function TimeToDiff(DateTime)
If IsDate(DateTime) Then
Dim tSecond:tSecond=DateDiff("s",DateTime,Now())
If tSecond
TimeToDiff="刚刚"
End If
If tSecond>=60 And tSecond
TimeToDiff=DateDiff("n",DateTime,Now())&"分钟前"
End If
If tSecond>=3600 And tSecond
TimeToDiff=DateDiff("h",DateTime,Now())&"小时前"
End If
If tSecond>=86400 And tSecond
TimeToDiff=DateDiff("d",DateTime,Now())&"天前"
End If
If tSecond>=2592000 And tSecond
TimeToDiff=DateDiff("m",DateTime,Now())&"个月前"
End If
If tSecond>=31536000 Then'//其它
TimeToDiff=DateDiff("yyyy",DateTime,Now())&"年前"
End If
Else
TimeToDiff="N天前"
End If
End Function
恋爱进行时九游版
恋爱进行时九游版是一款以模拟恋爱玩法为核心的角色扮演手游,精
皇室对决fr(Null’s Royale)
皇室对决fr,即皇室战争的私服变态版本,在该版本中玩家能够拥
养了个猫联机版游戏
养了个猫小游戏一个猫咪主题的模拟经营类型的手游,在游戏中我那
模拟山羊收获日小米版
模拟山羊收获日小米版是一个极其魔性的手机游戏,在游戏中玩家将
女配逆袭之素衣
女配逆袭之素衣是一款恋爱养成冒险的一款游戏,可以角色扮演,在