[英]Convert Date format of BASH to Date Format of JavaScript
On executing date
command in linux shell the format of date dispplayed is Wed Oct 21 11:48:18 IST 2015
在Linux Shell中执行
date
命令时,显示的日期格式为Wed Oct 21 11:48:18 IST 2015
On executing the date
command in Javascript the format displayed is Wed Oct 21 2015 11:48:18 GMT+0530 (IST)
在用Javascript执行
date
命令时,显示的格式为Wed Oct 21 2015 11:48:18 GMT+0530 (IST)
Using shell script how can I convert linux shell date format to javascript date format and use it for a command to post data using CURL
使用Shell脚本,如何将Linux Shell日期格式转换为javascript日期格式,并将其用于使用
CURL
发布数据的命令
我使用命令date "+%a %b %d %Y %H:%M:%S GMT%z (%Z)"
了此输出,输出结果为Wed Oct 21 2015 12:22:44 GMT+0530 (IST)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.