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.
Apache License 2.0
40 stars 124 forks source link

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

Closed FALLAI-Denis closed 9 months ago

FALLAI-Denis commented 10 months ago

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.

M-DLB commented 10 months ago

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 !

dennis-behm commented 9 months ago

Delivered via zAppBuild Release 3.5.0