Cygwin 如何指定“日期”的秒数?
我希望能够指定过去的时间值,精确到秒。我将在 github 上使用它。我该怎么做?
I want to be able to specify a time value in the past, down to the second. I'll be using this with github. How do I do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

我希望能够指定过去的时间值,精确到秒。我将在 github 上使用它。我该怎么做?
I want to be able to specify a time value in the past, down to the second. I'll be using this with github. How do I do this?
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
你的问题不清楚。
date
命令采用-d
或--date=...
选项来指定日期。指定日期的格式相当灵活。还有控制输出格式的选项。例如:date --help
或info date
了解更多详细信息。你说你将“将其与 github 一起使用”。 您将如何将其与 github 一起使用?您想将格式化的日期字符串传递给某个 git 命令吗?请详细说明。
Your question is unclear.
The
date
command takes a-d
or--date=...
option that lets you specify a date. The format of the specified date is fairly flexible. There are also options to control the output format. For example:date --help
orinfo date
for more details.You say you'll "be using this with github". How will you be using it with github? Do you want to pass a formatted date string to some git command? Details, please.