当前位置:网站首页>给3月1日至3月31日做60万条数据,VideoDate 要求1到31日StartTime要求00:00到24点,仅供笔记参考
给3月1日至3月31日做60万条数据,VideoDate 要求1到31日StartTime要求00:00到24点,仅供笔记参考
2022-07-19 12:27:00 【张恒要减肥】
public function actionIndex()
{
$times = 1646064000;// 起始日期2022年3月1号
for ($i = 1; $i <= 31; $i++) {
// 3月1号时间戳 1646064000 每一条数据,相隔4.32秒
$n=1;
for ($j = 1; $j <= 20000; $j++) {
if($n==201){
$n=1;
}
$no = 30000 + $n;
$time = date('Y-m-d H:i:s',$times+4.32*$j);
$date = date('Y-m-d',$times);
$saveAdd[$j]['FileName'] = 'HXD30189_上海巨石_01_一端路况_20220410_193017.mp4';
$saveAdd[$j]['FilePath'] = '/6A-VIDEO-HXD30189-上海巨石/2022-04-10/HXD30189_上海巨石_01_一端路况_20220410_193017.mp4';
$saveAdd[$j]['NodeID'] = 3;
$saveAdd[$j]['TrainNo'] = 'HXD' . $no;
$saveAdd[$j]['Brand'] = '上海巨石';
$saveAdd[$j]['Chanel'] = '01';
$saveAdd[$j]['ChannelName'] = '一端路况';
$saveAdd[$j]['VideoDate'] = $date;// 3月1号到31号
$saveAdd[$j]['StartTime'] = $time;// 0:00 到23:59
$saveAdd[$j]['EndTime'] = $time; //
$saveAdd[$j]['M3u8Path'] = '_20220410_193017.m3u8';
$saveAdd[$j]['DriverID'] = '22';
$saveAdd[$j]['Driver'] = '司机名';
$saveAdd[$j]['CoDriverID'] = '22';
$saveAdd[$j]['CoDriver'] = '副司机名';
$saveAdd[$j]['VideoUploadTime'] = date('Y-m-d H:i:s');
$saveAdd[$j]['IsVideoProcessed'] = '00';
$n++;
}
Yii::$app->db->createCommand()->batchInsert('testinsert', ['FileName','FilePath','NodeID','TrainNo','Brand','Chanel','ChannelName','VideoDate'
,'StartTime','EndTime','M3u8Path','DriverID','Driver','CoDriverID','CoDriver','VideoUploadTime','IsVideoProcessed'
], $saveAdd)->execute();
$times += 86400; //处理完一次加一天
}
return $this->render('index');
}
边栏推荐
- 省选专练之【PKUSC2018】主斗地
- mindspore 8卡V100训练到101个epoch的时候报读取数据超时的错误
- Image annotation open source gadget labelimg
- 使用Masonry实现控件(包括UITableView)根据内容进行宽度自适应和高度自适应
- 图论复习usaco2006jan gold分离的路径
- Flink SQL configures Kafka to chain a topic with multiple partitions, and there is no error. There is no problem with a single partition
- 容斥【玲珑杯】咸鱼值
- clickhouse 20.x 与prometheus + grafana的集成(三)
- 25、继承与派生
- 推荐一款支持数据 + 代码生成的开发工具!yyds
猜你喜欢
【Mindspore】【读取图数据】无法读取Mindrecord格式图数据
[special topic of golang database 5] golang language operation redis for addition, deletion, modification and query
C# 在Word中添加多行多列文字水印
Zhiyuan admitted plagiarizing the paper, and the relevant responsible person has resigned!
(0711-0717) memorabilia of open source software security this week
GCD spanning tree of provincial selection and special training
基于Xlinx的时序分析与约束(1)----什么是时序分析?什么是时序约束?什么又是时序收敛?
Socket error Event: 32 Error: 10053. Connection closing...Socket close
【Mindspore】【读取图数据】无法读取Mindrecord格式的图数据
分析脚手架
随机推荐
freeotp 安装及使用过程[通俗易懂]
(0711-0717)本周开源软件安全大事记
npm warn config global `--global`, `--local` are deprecated. use `--location 解决方法
reduce函数构建炫耀字体,字体动画。
Istio 将应用暴露到互联网
【BZOJ2393】Cirno的完美算数教室
实例|APICloud AVM框架封装省市区级联选择弹框
Can't Oracle's $sqlarea find out which host is executing these SQL?
Was expecting double quote to start field name error
使用Masonry实现控件(包括UITableView)根据内容进行宽度自适应和高度自适应
实例|APICloud AVM框架封装滑动单元格组件
软件测试如何快速入门
Analysis scaffold
[mindspire] [model reasoning] whether the model trained using the unfit CPU API can perform reasoning on the CPU
First knowledge of C language
Import word document pictures kernel synchronization and mutual exclusion
&& 运算符的使用
[jsoi2007] important cities
[mindspore] [warning reason] give a warning when training the model
函數遞歸習題(easy版)