怎样把2004-2-12 12:30:18 这样的格式转换为20040212123018

yx360 2004-11-27 02:35:07
rt,转换为字符串型
...全文
153 8 打赏 收藏 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
yx360 2004-11-27
  • 打赏
  • 举报
回复
to hedongyang(笑笑) and xiaozx(老德)
你们的方法不能把1位的月份转换为2位的,不过还是要谢谢你们
waiber 2004-11-27
  • 打赏
  • 举报
回复
'晕 忘补0,加上!

function ConvDateTimeAll(StrDateTimeAll)
dim strYear,strMonth,strDay
dim strHour,strMin,strSec

strYear = Year(StrDateTimeAll)
strMonth = Month(StrDateTimeAll)
if len(strMonth)=1 then
strMonth="0" & strMonth
end if
strDay = day(StrDateTimeAll)
if len(strDay)=1 then
strDay ="0" & strDay
end if
strHour = hour(StrDateTimeAll)
if len(strHour)=1 then
strHour ="0" & strHour
end if
strMin = Minute(StrDateTimeAll)
if len(strMin)=1 then
strMin="0" & strMin
end if
strSec = Second(StrDateTimeAll)
if len(strSec)=1 then
strSec="0" & strSec
end if

ConvDateTimeAll = strYear&strMonth&strDay&strHour&strMin&strSec
end function

Response.Write(ConvDateTimeAll(Now()))
waiber 2004-11-27
  • 打赏
  • 举报
回复
function ConvDateTimeAll(StrDateTimeAll)
dim strYear,strMonth,strDay
dim strHour,strMin,strSec

strYear = Year(StrDateTimeAll)
strMonth = Month(StrDateTimeAll)
strDay = day(StrDateTimeAll)
strHour = hour(StrDateTimeAll)
strMin = Minute(StrDateTimeAll)
strSec = Second(StrDateTimeAll)

ConvDateTimeAll = strYear&strMonth&strDay&strHour&strMin&strSec
end function

Response.Write(ConvDateTimeAll(Now()))
Camelot 2004-11-27
  • 打赏
  • 举报
回复
Function timecode(tstr)
timecode=Year(tstr)
if Month(tstr)<10 then timecode=timecode &"0"
timecode=timecode & Month(tstr)
if Day(tstr)<10 then timecode=timecode &"0"
timecode=timecode & Day(tstr)
if Hour(tstr)< 10 then timecode=timecode &"0"
timecode=timecode & Hour(tstr)
if Minute(tstr)<10 then timecode=timecode &"0"
timecode=timecode & Minute(tstr)
if Second(tstr)<10 then timecode=timecode &"0"
timecode=timecode & Second(tstr)
end Function


用上面这个函数,
如Response.Write(timecode(Now()))





┏━━━.:可爱的分割线:.━━━━━━━━━━━━━━━━
┃                                
┃在线的RSS订阅系统(Blog、新闻、技术):http://www.gbmad.net/rss/
┃无论你在哪,只要能上网就能订阅查看你喜欢的聚合         
┃                                
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━
phckt 2004-11-27
  • 打赏
  • 举报
回复
fname = now()
fname = replace(fname,"-","")
fname = replace(fname," ","")
fname = replace(fname,":","")
fname = replace(fname,"PM","")
fname = replace(fname,"AM","")
fname = replace(fname,"上午","")
fname = replace(fname,"下午","")
xiaozx 2004-11-27
  • 打赏
  • 举报
回复
aa=replace(aa," ","")
aa=replace(aa,"-","")
aa=replace(aa,":","")
hedongyang 2004-11-27
  • 打赏
  • 举报
回复
Dim dd,dd1
dd=Now()

dd1=Replace(dd,"-","")
dd1=Replace(dd1," ","")
dd1=Replace(dd1,":","")

Response.Write(dd1)
yx360 2004-11-27
  • 打赏
  • 举报
回复
up
下方可见数据集可视化效果。 【数据集概况】 · 检测类别(中文):[桅杆(mast)] · 训练集:2043 张 · 验证集:195 张 · 测试集:97 张 · 总计:2335 张 该数据集聚焦于运动场场景中的桅杆目标检测,通过采集多样化环境下的图像数据,为智能监控系统提供精准的检测基础,有效提升场景管理效率与安全性。数据集包含训练集2043张、验证集195张和测试集97张,训练集占比合理,验证集与测试集比例科学,充分保障模型训练的充分性和评估结果的可靠性。标注工作严谨规范,所有桅杆目标均被精确框定,边界框与物体轮廓高度吻合,标注质量达到行业高标准,为模型训练提供坚实保障。该... 【训练曲线与评估图】 【模型训练配置】 参数 | 值 模型 | yolo26n 训练轮数 | 100 epochs 输入尺寸 | 640x640 批次大小 | 24 优化器 | auto 初始学习率 | 0.01 训练设备 【关键指标汇总】 训练了 34 个 epoch,最终轮指标: 指标 | 数值 mAP50 | **0.9948** mAP50-95 | 0.8617 Precision | 0.9899 Recall | 0.9999 train/box_loss | 0.6284 train/cls_loss | 0.2131 val/box_loss | 0.6118 val/cls_loss | 0.1750 【训练过程分析】 34 轮训练后 mAP50 达到 0.9948,模型收敛良好。Loss 曲线前段快速下降,后段趋于平稳,val_loss 无反弹,没有明显过拟合。mAP50-95 为 0.8617,和 mAP50 差距仅 0.13,框的定位精度也很扎实。 【模型性能评估】 Precision 0.9899、Recall 0.9999,精召双高,模型对桅杆的检测能力强。...

28,401

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧