function Get-ChinaTimeAlias
{
param(
[ValidateRange(0,23)]
[int]$Hour = (get-date).Hour
)
$timeAliasArray='子丑寅卯辰巳午未申酉戌亥'
[int]$index=0
if($hour -eq 22){ $index=11 }
else{
$index=[math]::Floor( ( $hour+1 ) % 23 / 2 )
}
return $timeAliasArray[ $index ] + "时"
}
$timeArray=@(23)+0..22
for($i=0;$i -lt $timeArray.Length; $i=$i+2)
{
$startHour = $timeArray[$i].ToString().PadLeft(2,'0')
$endHour = $timeArray[$i+1].ToString().PadLeft(2,'0')
$timeAlias = Get-ChinaTimeAlias $timeArray[$i]
[pscustomobject]@{
时辰 = $timeAlias;
时间段 = ('{0}:00-{1}:59' -f $startHour,$endHour)
}
}
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有