- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for setTimeZone (0.08 sec)
-
src/test/java/org/codelibs/core/convert/TimeConversionUtilTest.java
*/ @Test public void testToDate_LongStyle() throws Exception { final Date date = toDate("11:49:10 JST"); final SimpleDateFormat df = new SimpleDateFormat("HH:mm:ss"); df.setTimeZone(TimeZone.getTimeZone("JST")); assertThat(df.format(date), is("11:49:10")); } /** * @throws Exception */ @Test public void testToDate_FullStyle() throws Exception {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 9.5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/TimestampConversionUtilTest.java
// final Date date = toDate("2010/09/07 11:49:10 JST", Locale.JAPAN); // final SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); // df.setTimeZone(TimeZone.getTimeZone("JST")); // assertThat(df.format(date), is("2010/09/07 11:49:10")); // } /** * @throws Exception */ // @Test
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 11.4K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/AbstractModelInterpolatorTest.java
} return config; } @Test public void testDefaultBuildTimestampFormatShouldFormatTimeIn24HourFormat() { Calendar cal = Calendar.getInstance(); cal.setTimeZone(MavenBuildTimestamp.DEFAULT_BUILD_TIME_ZONE); cal.set(Calendar.HOUR, 12); cal.set(Calendar.AM_PM, Calendar.AM); // just to make sure all the bases are covered...
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-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-resolver-provider/src/test/java/org/apache/maven/repository/internal/RemoteSnapshotMetadataTest.java
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() { String dateBefore = gregorianDate();
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-resolver-provider/src/main/java/org/apache/maven/repository/internal/RemoteSnapshotMetadata.java
DateFormat utcDateFormatter = new SimpleDateFormat(DEFAULT_SNAPSHOT_TIMESTAMP_FORMAT); utcDateFormatter.setCalendar(new GregorianCalendar()); utcDateFormatter.setTimeZone(DEFAULT_SNAPSHOT_TIME_ZONE); snapshot = new Snapshot(); snapshot.setBuildNumber(buildNumber != null ? buildNumber : getBuildNumber(recessive) + 1);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.5K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/EmlExtractor.java
data.putValues(key, values); } else if (value instanceof Date) { final SimpleDateFormat sdf = new SimpleDateFormat(Constants.ISO_DATETIME_FORMAT); sdf.setTimeZone(TimeZone.getTimeZone("UTC")); data.putValue(key, sdf.format(value)); } else if (value != null) { data.putValue(key, value.toString()); }
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:47:32 UTC 2024 - 10.8K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/SnapshotTransformation.java
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) -
src/main/java/org/codelibs/fess/taglib/FessFunctions.java
if (date == null) { return StringUtil.EMPTY; } final SimpleDateFormat sdf = new SimpleDateFormat(Constants.ISO_DATETIME_FORMAT); sdf.setTimeZone(Constants.TIMEZONE_UTC); return sdf.format(date); } public static String formatDate(final LocalDateTime date) { if (date == null) { return StringUtil.EMPTY; }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 16.9K bytes - Viewed (0) -
compat/maven-repository-metadata/src/test/java/org/apache/maven/artifact/repository/metadata/MetadataTest.java
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) { Metadata metadata = new Metadata();
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 13.7K bytes - Viewed (0)