IBM / dbb-zappbuild

zAppBuild is a generic build solution for building z/OS applications using Apache Groovy build scripts and IBM Dependency Based Build (DBB) APIs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Time format "yyyyMMdd.HHmmss.mmm" or "yyyyMMdd.HHmmss.SSS" ?

FALLAI-Denis opened this issue · comments

Hi,

Many zAppbuild scripts use the formatting string yyyyMMdd.HHmmss.mmm to format a date-time, but shouldn't the string yyyyMMdd.HHmmss.SSS be used instead?

mmm does not stand for "microsecond", unlike SSS, (S for fraction of second).

Confer SimpleDateFormat patterns.

Yes, I think you're right. I never noticed that before...
In some examples I've seen on our environment:
Build start at 20230911.043529.035
The last part 035 is actually the minutes on 3 digits, as we see the same minutes in 043529. I've check on other builds and it's always the same...
We'll work on a fix for the next release!

Thank for reporting that problem @FALLAI-Denis !