- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for getTimeZone (0.27 sec)
-
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
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 11.4K bytes - Viewed (0) -
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)} * .
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 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 {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 9.5K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/MavenMetadata.java
static final String MAVEN_METADATA_XML = "maven-metadata.xml"; static DateFormat fmt; static { TimeZone timezone = TimeZone.getTimeZone("UTC"); fmt = new SimpleDateFormat("yyyyMMddHHmmss"); fmt.setTimeZone(timezone); } protected Metadata metadata; private final Path path; protected final Date timestamp;
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu May 02 16:33:18 GMT 2024 - 4.4K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/RemoteSnapshotMetadata.java
final class RemoteSnapshotMetadata extends MavenSnapshotMetadata { public static final String DEFAULT_SNAPSHOT_TIMESTAMP_FORMAT = "yyyyMMdd.HHmmss"; public static final TimeZone DEFAULT_SNAPSHOT_TIME_ZONE = TimeZone.getTimeZone("Etc/UTC"); private final Map<String, SnapshotVersion> versions = new LinkedHashMap<>(); private final Integer buildNumber; RemoteSnapshotMetadata(Artifact artifact, Date timestamp, Integer buildNumber) {
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu Apr 25 10:10:21 GMT 2024 - 5.5K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/MavenBuildTimestamp.java
public static final String BUILD_TIMESTAMP_FORMAT_PROPERTY = "maven.build.timestamp.format"; public static final TimeZone DEFAULT_BUILD_TIME_ZONE = TimeZone.getTimeZone("Etc/UTC"); private String formattedTimestamp; public MavenBuildTimestamp() { this(Instant.now()); } public MavenBuildTimestamp(Instant time) {
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 2.8K 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>
XML - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu Apr 11 14:06:34 GMT 2024 - 15.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/SystemHelper.java
public void init() { if (logger.isDebugEnabled()) { logger.debug("Initialize {}", this.getClass().getSimpleName()); } final Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC")); cal.set(2025, 10 - 1, 1); // EOL Date eolTime = cal.getTimeInMillis(); if (isEoled()) { logger.error("Your system is out of support. See https://fess.codelibs.org/eol.html");
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Sat Apr 13 11:43:03 GMT 2024 - 26.5K bytes - Viewed (2) -
okhttp/src/test/java/okhttp3/CacheTest.kt
val servedDate = Date(System.currentTimeMillis() + TimeUnit.HOURS.toMillis(-2)) val dateFormat: DateFormat = SimpleDateFormat("EEE dd-MMM-yyyy HH:mm:ss z", Locale.US) dateFormat.timeZone = TimeZone.getTimeZone("America/New_York") val lastModifiedString = dateFormat.format(lastModifiedDate) val servedString = dateFormat.format(servedDate) // This response should be conditionally cached. server.enqueue(
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 108.6K bytes - Viewed (0)