- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 28 for getTimeZone (0.15 sec)
-
okhttp/src/test/java/okhttp3/internal/http/HttpDateTest.kt
fun setUp() { originalDefault = TimeZone.getDefault() // The default timezone should affect none of these tests: HTTP specified GMT, so we set it to // something else. TimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles")) } @AfterEach @Throws(Exception::class) fun tearDown() { TimeZone.setDefault(originalDefault) } @Test @Throws(Exception::class)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.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 Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:47:32 UTC 2024 - 10.8K bytes - Viewed (0) -
build-logic/build-update-utils/src/test/groovy/gradlebuild/buildutils/tasks/UpdateReleasedVersionsTest.groovy
import static java.util.concurrent.TimeUnit.DAYS class UpdateReleasedVersionsTest extends Specification { def format = new SimpleDateFormat('yyyyMMddHHmmssZ') def setup() { format.timeZone = TimeZone.getTimeZone("UTC") } def "final release is added to list"() { def snapshot = snapshot('4.3') def rc = releasedVersion('4.3-rc-1') def versions = releasedVersions(snapshot, rc, [])
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 5.4K 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; public void transformForResolve(Artifact artifact, RepositoryRequest request) throws ArtifactResolutionException {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6.4K bytes - Viewed (0) -
okhttp/src/test/java/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 Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 6K bytes - Viewed (0) -
api/maven-api-metadata/src/main/mdo/metadata.mdo
{ setLastUpdatedTimestamp( new java.util.Date() ); } public void setLastUpdatedTimestamp( java.util.Date date ) { java.util.TimeZone timezone = java.util.TimeZone.getTimeZone( "UTC" ); java.text.DateFormat fmt = new java.text.SimpleDateFormat( "yyyyMMddHHmmss" ); fmt.setTimeZone( timezone ); setLastUpdated( fmt.format( date ) ); } ]]></code>
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Wed May 15 17:32:27 UTC 2024 - 15.8K bytes - Viewed (0) -
compat/maven-repository-metadata/src/test/java/org/apache/maven/artifact/repository/metadata/MetadataTest.java
private static String formatDate(Date date, boolean forSnapshotTimestamp) { // logic from metadata.mdo, class "Versioning" TimeZone timezone = TimeZone.getTimeZone("UTC"); DateFormat fmt = new SimpleDateFormat(forSnapshotTimestamp ? DEFAULT_SNAPSHOT_TIMESTAMP_FORMAT : DEFAULT_DATE_FORMAT); fmt.setCalendar(new GregorianCalendar());
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 13.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt
@JvmField internal val EMPTY_RESPONSE: ResponseBody = commonEmptyResponse /** GMT and UTC are equivalent for our purposes. */ @JvmField internal val UTC: TimeZone = TimeZone.getTimeZone("GMT")!! internal fun threadFactory( name: String, daemon: Boolean, ): ThreadFactory = ThreadFactory { runnable -> Thread(runnable, name).apply { isDaemon = daemon } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon May 13 13:42:37 UTC 2024 - 10.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/es/log/allcommon/EsAbstractConditionQuery.java
} else if (format.contains("date_optional_time")) { final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"); sdf.setTimeZone(TimeZone.getTimeZone("UTC")); return sdf.format(date); } else { return Long.toString(date.getTime()); } }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 21.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/es/config/allcommon/EsAbstractConditionQuery.java
} else if (format.contains("date_optional_time")) { final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"); sdf.setTimeZone(TimeZone.getTimeZone("UTC")); return sdf.format(date); } else { return Long.toString(date.getTime()); } }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 21.1K bytes - Viewed (0)