ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Numain" <>
Subject Tstamp & co - setting a property with value = milliseconds since 1970
Date Wed, 29 Nov 2006 21:06:28 GMT

I've looked at the tstamp ant task, but it does not seem to answer my need.

I'd like to set a property with the milliseconds since 1970 (the long value
of new Date().getTime()). The Millisecond format does'nt help me since it
only sets the millisecond fraction of the current second.

    <format property="TIMESTAMP_MILLIS" pattern="SSSSSSSS" />

Is there an easy way to get this value in ant?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message