ant-user mailing list archives

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

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.

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

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

Thanks!
Numain


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message