bat 批处理-取年、月、日、时、分、秒、毫秒
时间:2014-01-21 10:13:41
收藏:0
阅读:606
bat 批处理-取年、月、日、时、分、秒、毫秒
取年份:echo %date:~0,4%
取月份:echo %date:~5,2%
取日期:echo %date:~8,2%
取星期:echo %date:~10,6%
取小时:echo %time:~0,2%
取分钟:echo %time:~3,2%
取秒:echo %time:~6,2%
取毫秒:echo %time:~9,2%
取年份:echo %date:~0,4%
取月份:echo %date:~5,2%
取日期:echo %date:~8,2%
取星期:echo %date:~10,6%
取小时:echo %time:~0,2%
取分钟:echo %time:~3,2%
取秒:echo %time:~6,2%
取毫秒:echo %time:~9,2%
原文:http://blog.csdn.net/liruxing1715/article/details/18215177
评论(0)