public class MavenBuildTimestamp extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BUILD_TIMESTAMP_FORMAT_PROPERTY
The property name.
|
static TimeZone |
DEFAULT_BUILD_TIME_ZONE
The default time zone
Etc/UTC . |
static String |
DEFAULT_BUILD_TIMESTAMP_FORMAT
ISO 8601-compliant timestamp for machine readability.
|
Constructor and Description |
---|
MavenBuildTimestamp()
Create an instance.
|
MavenBuildTimestamp(Date time) |
MavenBuildTimestamp(Date time,
Properties properties) |
MavenBuildTimestamp(Date time,
String timestampFormat) |
public static final String DEFAULT_BUILD_TIMESTAMP_FORMAT
public static final String BUILD_TIMESTAMP_FORMAT_PROPERTY
public static final TimeZone DEFAULT_BUILD_TIME_ZONE
Etc/UTC
.public MavenBuildTimestamp()
public MavenBuildTimestamp(Date time)
time
- The time to use.public MavenBuildTimestamp(Date time, Properties properties)
time
- The time to use.properties
- the properties which can be define. can be null
public MavenBuildTimestamp(Date time, String timestampFormat)
time
- The time to use.timestampFormat
- The format for SimpleDateFormat
.public String formattedTimestamp()
Copyright © 2014–2020 Polago AB. All rights reserved.