- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for getTimeZone (0.04 sec)
-
src/test/java/org/codelibs/core/convert/CalendarConversionUtilTest.java
*/ @Test public void testLocalize() throws Exception { final Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("JST")); final Calendar local = CalendarConversionUtil.localize(calendar); assertEquals(TimeZone.getDefault(), local.getTimeZone()); } /** * Test method for * {@link org.codelibs.core.convert.CalendarConversionUtil#localize(Calendar)} * .
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2.4K bytes - Viewed (0) -
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 Sep 05 20:58:11 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 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 Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 11.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheCorruptionTest.kt
private fun formatDate(date: Date): String? { val rfc1123: DateFormat = SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US) rfc1123.timeZone = TimeZone.getTimeZone("GMT") return rfc1123.format(date) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessUserTimeZoneProcessProviderTest.java
// Store original time zone TimeZone originalTimeZone = TimeZone.getDefault(); try { // Change default time zone temporarily TimeZone newTimeZone = TimeZone.getTimeZone("America/New_York"); TimeZone.setDefault(newTimeZone); // Create new provider instance to pick up the new default
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 6.9K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/EmlExtractor.java
} 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()); } } catch (final Exception e) {
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 12.6K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/SnapshotTransformation.java
public class SnapshotTransformation extends AbstractVersionTransformation { private static final String DEFAULT_SNAPSHOT_TIMESTAMP_FORMAT = "yyyyMMdd.HHmmss"; private static final TimeZone DEFAULT_SNAPSHOT_TIME_ZONE = TimeZone.getTimeZone("Etc/UTC"); private String deploymentTimestamp; @Override public void transformForResolve(Artifact artifact, RepositoryRequest request) throws ArtifactResolutionException {
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 6.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainBeforeHookTest.java
} } public void test_createFinalTimeZoneProvider_withDifferentDefaultTimeZone() { // Given TimeZone testTimeZone = TimeZone.getTimeZone("America/New_York"); TimeZone originalDefault = TimeZone.getDefault(); try { // Change default timezone temporarily TimeZone.setDefault(testTimeZone);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java
long unixTime = time / 1000L; // Mocking date for timezone consistency TimeZone original = TimeZone.getDefault(); try { TimeZone.setDefault(TimeZone.getTimeZone("UTC")); ServerMessageBlock.writeUTime(unixTime * 1000L, buffer, 0); long readTime = ServerMessageBlock.readUTime(buffer, 0); assertEquals(unixTime * 1000L, readTime); } finally {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/config/DelegatingConfigurationTest.java
} @Test @DisplayName("TimeZone configuration should delegate correctly") void testTimeZoneConfigurationDelegation() { // Given TimeZone timeZone = TimeZone.getTimeZone("UTC"); when(mockDelegate.getLocalTimezone()).thenReturn(timeZone); // When TimeZone resultTimeZone = delegatingConfig.getLocalTimezone(); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0)