构造当月特定日期的日期并将其转换为纪元

Construct date for specific day of current month and convert it to epoch

我需要当月第 4 天的纪元。

我有这个:

START_DT=$(date +"%Y-%m-04 00:00:00")
START_DT_TS=$(date -d "$START_DT" +%s)

输出是预期的 1433368800。

如何在单行上实现这个?

尝试反引号方法

date -d "`date +\"%Y-%m-04 00:00:00\"`" +%s