Skip to content

Instantly share code, notes, and snippets.

@jnericks
Created October 11, 2010 21:35
Show Gist options
  • Save jnericks/621285 to your computer and use it in GitHub Desktop.
Save jnericks/621285 to your computer and use it in GitHub Desktop.
parameters.addEnvAndSystem("build.start.year", (new SimpleDateFormat("yyyy")).format(buildStartTime));
parameters.addEnvAndSystem("build.start.month", (new SimpleDateFormat("MM")).format(buildStartTime));
parameters.addEnvAndSystem("build.start.day", (new SimpleDateFormat("dd")).format(buildStartTime));
parameters.addEnvAndSystem("build.start.hour", (new SimpleDateFormat("HH")).format(buildStartTime));
parameters.addEnvAndSystem("build.start.minute", (new SimpleDateFormat("mm")).format(buildStartTime));
parameters.addEnvAndSystem("build.start.second", (new SimpleDateFormat("ss")).format(buildStartTime));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment