- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for setCalendar (0.11 sec)
-
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/RemoteSnapshotMetadata.java
String lastUpdated; if (metadata.getVersioning() == null) { DateFormat utcDateFormatter = new SimpleDateFormat(DEFAULT_SNAPSHOT_TIMESTAMP_FORMAT); utcDateFormatter.setCalendar(new GregorianCalendar()); utcDateFormatter.setTimeZone(DEFAULT_SNAPSHOT_TIME_ZONE); snapshot = new Snapshot();
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-resolver-provider/src/test/java/org/apache/maven/repository/internal/RemoteSnapshotMetadataTest.java
@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 void gregorianCalendarIsUsed() {
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-model-builder/src/main/java/org/apache/maven/model/interpolation/MavenBuildTimestamp.java
} 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); } public String formattedTimestamp() { return formattedTimestamp;
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-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/SnapshotTransformation.java
return buildNumber; } public static DateFormat getUtcDateFormatter() { DateFormat utcDateFormatter = new SimpleDateFormat(DEFAULT_SNAPSHOT_TIMESTAMP_FORMAT); utcDateFormatter.setCalendar(new GregorianCalendar()); utcDateFormatter.setTimeZone(DEFAULT_SNAPSHOT_TIME_ZONE); return utcDateFormatter; }
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
TimeZone timezone = TimeZone.getTimeZone("UTC"); DateFormat fmt = new SimpleDateFormat(forSnapshotTimestamp ? DEFAULT_SNAPSHOT_TIMESTAMP_FORMAT : DEFAULT_DATE_FORMAT); fmt.setCalendar(new GregorianCalendar()); fmt.setTimeZone(timezone); return fmt.format(date); } private static Metadata createMetadataFromArtifact(Artifact artifact) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 13.7K bytes - Viewed (0) -
src/main/java/jcifs/http/NetworkExplorer.java
LinkedList<SmbFile> sorted; ListIterator<SmbFile> iter; SimpleDateFormat sdf = new SimpleDateFormat("MM/d/yy h:mm a"); GregorianCalendar cal = new GregorianCalendar(); sdf.setCalendar(cal); dirents = dir.listFiles(); if ( log.isDebugEnabled() ) { log.debug(dirents.length + " items listed"); } sorted = new LinkedList<>();
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 21.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/http/NetworkExplorer.java
LinkedList sorted; ListIterator iter; SimpleDateFormat sdf = new SimpleDateFormat( "MM/d/yy h:mm a" ); GregorianCalendar cal = new GregorianCalendar(); sdf.setCalendar( cal ); dirents = dir.listFiles(); if( log.level > 2 ) log.println( dirents.length + " items listed" ); sorted = new LinkedList();
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Wed Jan 22 03:57:31 UTC 2020 - 19.7K bytes - Viewed (0)