基于嵌入式Linux与S3C2410平台视频采集(转)
2008-09-01 19:45
471 查看
一。时间加减,日期加减,年月日加减一样。
var mydate= new Date('2012-05-10 10:10:21');
mydate.setDate(mydate.getDate()+50);
mydate.setMinutes(min, sec, ms)
alert(mydate.format("yyyy-MM-dd hh:mm:ss"));
太阳系 -http://blog.csdn.net/fellting
Date.prototype.format = function(format) { var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDate(), //day "h+" : this.getHours(), //hour "m+" : this.getMinutes(), //minute "s+" : this.getSeconds(), //second "q+" : Math.floor((this.getMonth()+3)/3), //quarter "S" : this.getMilliseconds() //millisecond } if(/(y+)/.test(format)) format=format.replace(RegExp.$1,(this.getFullYear()+"").substr(4 - RegExp.$1.length)); for(var k in o) if(new RegExp("("+ k +")").test(format)) format = format.replace(RegExp.$1,RegExp.$1.length==1 ? o[k] : ("00"+ o[k]).substr((""+ o[k]).length)); return format; }
var mydate= new Date('2012-05-10 10:10:21');
mydate.setDate(mydate.getDate()+50);
mydate.setMinutes(min, sec, ms)
alert(mydate.format("yyyy-MM-dd hh:mm:ss"));
太阳系 -http://blog.csdn.net/fellting
相关文章推荐
- 基于嵌入式linux和s3c2410平台的视频采集
- 基于嵌入式linux和s3c2410平台的视频采集
- 基于嵌入式linux和s3c2410平台的视频采集
- 基于嵌入式Linux与S3C2410平台视频采集
- 基于嵌入式Linux系统的S3C2410的视频采集系统
- 基于嵌入式linux和s32410平台的视频采集续
- 基于嵌入式linux和s32410平台的视频采集
- 基于ARM+LINUX的无线视频采集系统设计----------搭建嵌入式web服务器
- 基于嵌入式Linux的视频采集系统6----视频在LCD上的实时显示
- 基于嵌入式Linux的视频采集系统11----系统运行与测试
- 基于嵌入式Linux的视频采集系统17-----源程序----decoder.h
- 基于嵌入式Linux的视频采集系统1
- 基于嵌入式Linux的视频采集系统12-----源程序----rtp_service.h
- 基于嵌入式Linux的视频采集系统18-----源程序----decoder.cpp
- 基于嵌入式Linux的视频图像采集与传输
- 基于嵌入式Linux的视频图像采集与传输
- 基于嵌入式Linux的视频采集系统---UVC驱动模型介绍
- 基于嵌入式Linux的视频采集系统5--基于MJPEG编码方式的视频采集实现
- 基于嵌入式Linux的视频采集系统13-----源程序----rtp_service.cpp
- 基于嵌入式Linux的视频采集系统19-----源程序----v4l_driver.h