When you create a job on the CDM console to migrate tables or files of a relational database, you can add a field to record the time when they were written to the database.
.
Name: Enter InputTime.

Macro Variable |
Description |
Display Effect |
|---|---|---|
${dateformat(yyyy-MM-dd)} |
Returns the current date in yyyy-MM-dd format. |
2017-10-16 |
${dateformat(yyyy/MM/dd)} |
Returns the current date in yyyy/MM/dd format. |
2017/10/16 |
${dateformat(yyyy_MM_dd HH:mm:ss)} |
Returns the current time in yyyy_MM_dd HH:mm:ss format. |
2017_10_16 09:00:00 |
${dateformat(yyyy-MM-dd HH:mm:ss, -1, DAY)} |
Returns the current time in yyyy-MM-dd HH:mm:ss format. The date is one day before the current day. |
2017-10-15 09:00:00 |
${dateformat(yyyy-MM-dd, -1, DAY)} 00:00:00 |
Returns 00:00:00 of the day before the current day in yyyy-MM-dd HH:mm:ss format. |
2017-10-15 00:00:00 |
${dateformat(yyyy-MM-dd, -1, DAY)} 12:00:00 |
Returns 12:00:00 of the day before the current day in yyyy-MM-dd HH:mm:ss format. |
2017-10-15 12:00:00 |
${dateformat(yyyy-MM-dd, -N, DAY)} 00:00:00 |
Returns 00:00:00 of the day N days before the current day in yyyy-MM-dd HH:mm:ss format. |
When N is 3: 2017-10-13 00:00:00 |
${dateformat(yyyy-MM-dd, -N, DAY)} 12:00:00 |
Returns 12:00:00 of the day N days before the current day in yyyy-MM-dd HH:mm:ss format. |
When N is 3: 2017-10-13 12:00:00 |
${timestamp()} |
Returns the timestamp of the current time, that is, the number of milliseconds that have elapsed since 00:00:00 on January 1, 1970. |
1508115600000 |
${timestamp(-10, MINUTE)} |
Returns the timestamp generated 10 minutes before the current time point. |
1508115000000 |
${timestamp(dateformat(yyyyMMdd))} |
Returns the timestamp of 00:00:00 of the current day. |
1508083200000 |
${timestamp(dateformat(yyyyMMdd,-1,DAY))} |
Returns the timestamp of 00:00:00 of the previous day. |
1507996800000 |
${timestamp(dateformat(yyyyMMddHH))} |
Returns the timestamp of the current hour. |
1508115600000 |
On the Historical Record page, click Log to view the job logs.