[英]How to pass date from shell script to java Instant data type
I passed the following我通过了以下
NOW=$(date +%Y-%m-%dT%H:%M:%S)
timestamp:"'$NOW'"
in curl body, timestamp:"'$NOW'"
,
but the deserialization failed.但反序列化失败。
What format does Java Instant accept? Java Instant 接受什么格式?
try the below:试试下面的:
NOW=$(date --utc +%FT%TZ)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.