- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for DateFormat (0.22 sec)
-
src/main/java/org/codelibs/core/convert/DateConversionUtil.java
* governing permissions and limitations under the License. */ package org.codelibs.core.convert; import static java.text.DateFormat.FULL; import static java.text.DateFormat.LONG; import static java.text.DateFormat.MEDIUM; import static java.text.DateFormat.SHORT; import static java.text.DateFormat.getDateInstance; import static org.codelibs.core.collection.MultiIterator.iterable; import static org.codelibs.core.lang.StringUtil.isEmpty;
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 21.5K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/MavenBuildTimestamp.java
} if (time == null) { time = Instant.now(); } SimpleDateFormat dateFormat = new SimpleDateFormat(timestampFormat); dateFormat.setCalendar(new GregorianCalendar()); dateFormat.setTimeZone(DEFAULT_BUILD_TIME_ZONE); formattedTimestamp = dateFormat.format(new Date(time.toEpochMilli())); } public String formattedTimestamp() { return formattedTimestamp;
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) -
src/main/java/org/codelibs/core/convert/TimestampConversionUtil.java
* governing permissions and limitations under the License. */ package org.codelibs.core.convert; import static java.text.DateFormat.FULL; import static java.text.DateFormat.LONG; import static java.text.DateFormat.MEDIUM; import static java.text.DateFormat.SHORT; import static java.text.DateFormat.getDateTimeInstance; import static org.codelibs.core.lang.StringUtil.isEmpty; import static org.codelibs.core.lang.StringUtil.isNotEmpty;
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 22.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/convert/TimeConversionUtil.java
* governing permissions and limitations under the License. */ package org.codelibs.core.convert; import static java.text.DateFormat.FULL; import static java.text.DateFormat.LONG; import static java.text.DateFormat.MEDIUM; import static java.text.DateFormat.SHORT; import static java.text.DateFormat.getTimeInstance; import static org.codelibs.core.lang.StringUtil.isEmpty; import static org.codelibs.core.lang.StringUtil.isNotEmpty;
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 21.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/DateFormatting.kt
/** * Most websites serve cookies in the blessed format. Eagerly create the parser to ensure such * cookies are on the fast path. */ private val STANDARD_DATE_FORMAT = object : ThreadLocal<DateFormat>() { override fun initialValue(): DateFormat { // Date format specified by RFC 7231 section 7.1.1.1. return SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss 'GMT'", Locale.US).apply { isLenient = false timeZone = UTC
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.1K bytes - Viewed (0) -
internal/amztime/parse.go
var ErrMalformedDate = errors.New("malformed date") // Parse parses date string via supported amz date formats. func Parse(amzDateStr string) (time.Time, error) { for _, dateFormat := range amzDateFormats { amzDate, err := time.Parse(dateFormat, amzDateStr) if err == nil { return amzDate, nil } } return time.Time{}, ErrMalformedDate } var httpTimeFormats = []string{
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 2.5K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/RemoteSnapshotMetadata.java
* specific language governing permissions and limitations * under the License. */ package org.apache.maven.internal.impl.resolver; import java.io.File; import java.nio.file.Path; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.GregorianCalendar; import java.util.LinkedHashMap; import java.util.Map; import java.util.TimeZone;
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) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt
internal fun parseUtcTime(string: String): Long { val utc = TimeZone.getTimeZone("GMT") val dateFormat = SimpleDateFormat("yyMMddHHmmss'Z'").apply { timeZone = utc set2DigitYearStart(Date(-631152000000L)) // 1950-01-01T00:00:00Z. } try { val parsed = dateFormat.parse(string) return parsed.time } catch (e: ParseException) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 15K bytes - Viewed (0) -
maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/SnapshotTransformation.java
buildNumber = repoMetadata.getVersioning().getSnapshot().getBuildNumber(); } return buildNumber; } public static DateFormat getUtcDateFormatter() { DateFormat utcDateFormatter = new SimpleDateFormat(DEFAULT_SNAPSHOT_TIMESTAMP_FORMAT); utcDateFormatter.setCalendar(new GregorianCalendar()); utcDateFormatter.setTimeZone(DEFAULT_SNAPSHOT_TIME_ZONE);
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu Sep 14 11:48:15 GMT 2023 - 6.4K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/DateConversionUtilTest.java
} /** * @throws Exception */ @Test public void testToDate_ShortStyle() throws Exception { System.out.println(((SimpleDateFormat) DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL)).toPattern()); final Date date = toDate("10/9/7"); assertThat(new SimpleDateFormat("yyyy/MM/dd").format(date), is("2010/09/07")); } /** * @throws Exception
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 9.4K bytes - Viewed (0)