在linux shell中执行date命令时,显示的日期格式为Wed Oct 21 11:48:18 IST 2015
在Javascript中执行date命令时,显示的格式为Wed Oct 21 2015 11:48:18 GMT+0530 (IST)
使用外壳脚本如何将linux外壳日期格式转换为javascript日期格式,并将其用于使用CURL发布数据的命令
发布于 2015-10-21 14:54:21
我使用命令date "+%a %b %d %Y %H:%M:%S GMT%z (%Z)"实现了这一点,输出为Wed Oct 21 2015 12:22:44 GMT+0530 (IST)
https://stackoverflow.com/questions/33252412
复制相似问题