You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Numain <nu...@gmx.ch> on 2006/11/29 22:06:28 UTC

Tstamp & co - setting a property with value = milliseconds since 1970

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