- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for SimpleDateFormat (0.11 sec)
-
compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/MavenBuildTimestamp.java
if (timestampFormat == null) { timestampFormat = DEFAULT_BUILD_TIMESTAMP_FORMAT; } if (time == null) { time = new Date(); } SimpleDateFormat dateFormat = new SimpleDateFormat(timestampFormat); dateFormat.setCalendar(new GregorianCalendar()); dateFormat.setTimeZone(DEFAULT_BUILD_TIME_ZONE); formattedTimestamp = dateFormat.format(time); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.8K bytes - Viewed (0) -
compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/RemoteSnapshotMetadataTest.java
Locale.setDefault(new Locale("th", "TH")); } @AfterEach void restoreLocale() { Locale.setDefault(defaultLocale); } static String gregorianDate() { SimpleDateFormat df = new SimpleDateFormat("yyyyMMdd"); df.setCalendar(new GregorianCalendar()); df.setTimeZone(RemoteSnapshotMetadata.DEFAULT_SNAPSHOT_TIME_ZONE); return df.format(new Date()); } @Test
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3.5K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/BuildTimestampValueSource.java
* KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.maven.project.interpolation; import java.text.SimpleDateFormat; import java.util.Date; import org.codehaus.plexus.interpolation.AbstractValueSource; /** * */ @Deprecated public class BuildTimestampValueSource extends AbstractValueSource {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.7K bytes - Viewed (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java
logger.error("Caused by: {}", cause.getMessage()); } } } } public static String formatTimestamp(long timestamp) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX"); return sdf.format(new Date(timestamp)); } public static String formatDuration(long duration) { // CHECKSTYLE_OFF: MagicNumber
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 7.3K bytes - Viewed (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/RemoteSnapshotMetadata.java
* under the License. */ package org.apache.maven.repository.internal; import java.io.File; import java.nio.file.Path; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.GregorianCalendar; import java.util.LinkedHashMap; import java.util.Map; import java.util.TimeZone;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.5K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/AbstractModelInterpolatorTest.java
// just to make sure all the bases are covered... cal.set(Calendar.HOUR_OF_DAY, 23); Date secondTestDate = cal.getTime(); SimpleDateFormat format = new SimpleDateFormat(MavenBuildTimestamp.DEFAULT_BUILD_TIMESTAMP_FORMAT); format.setTimeZone(MavenBuildTimestamp.DEFAULT_BUILD_TIME_ZONE); assertEquals("1976-11-11T00:16:00Z", format.format(firstTestDate));
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 22.2K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/SnapshotTransformation.java
* under the License. */ package org.apache.maven.repository.legacy.resolver.transform; import javax.inject.Named; import javax.inject.Singleton; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.GregorianCalendar; import java.util.TimeZone; import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.deployer.ArtifactDeploymentException;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6.4K bytes - Viewed (0) -
compat/maven-repository-metadata/src/test/java/org/apache/maven/artifact/repository/metadata/MetadataTest.java
* under the License. */ package org.apache.maven.artifact.repository.metadata; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.GregorianCalendar; import java.util.TimeZone; import org.apache.maven.metadata.v4.MetadataStaxReader; import org.apache.maven.metadata.v4.MetadataStaxWriter;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 13.7K bytes - Viewed (0) -
fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/AbstractCrawlerService.java
} if (obj instanceof Number) { return new Date(((Number) obj).longValue()); } if (obj instanceof String) { final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); sdf.setTimeZone(TimeZone.getTimeZone("GMT")); try { return sdf.parse(obj.toString()); } catch (final ParseException e) {
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Nov 07 04:44:10 UTC 2024 - 23.6K bytes - Viewed (0)