문제

I want to add a minute for a call file.

I use this for time:

Set(starttime=${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)});

result: 2014-04-10 13:52:50

want this result: 2014-04-10 13:53:50

도움이 되었습니까?

해결책

Use this:

Set(starttime=${STRFTIME($[ ${EPOCH} + 60 ],,%Y-%m-%d %H:%M:%S)});

Have work becuase of:

${EPOCH}: The current UNIX-style epoch (number of seconds since 1 Jan 1970)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top