Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for DateFormat (0.24 sec)

  1. 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 Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 21.5K bytes
    - Viewed (0)
  2. 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 Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  3. 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 Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  4. 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 Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  5. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  6. 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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  7. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15K bytes
    - Viewed (0)
  8. 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 Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Sep 14 11:48:15 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  9. 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 Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 10:10:21 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/service/CrawlingInfoService.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.app.service;
    
    import java.io.IOException;
    import java.io.Reader;
    import java.io.Writer;
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import java.time.LocalDateTime;
    import java.time.format.DateTimeFormatter;
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.List;
    import java.util.Set;
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 13.4K bytes
    - Viewed (0)
Back to top