Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 118 for UTC (0.13 sec)

  1. cmd/erasure-healing-common_test.go

    			[]time.Time{
    				time.Unix(0, 1).UTC(),
    				time.Unix(0, 2).UTC(),
    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 2).UTC(),
    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 1).UTC(),
    			},
    			time.Unix(0, 3).UTC(),
    			3,
    		},
    		{
    			// 2. Tests common time obtained when all elements are equal.
    			[]time.Time{
    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 3).UTC(),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 23K bytes
    - Viewed (1)
  2. internal/bucket/lifecycle/lifecycle_test.go

    		days     ExpirationDays
    		expected time.Time
    	}{
    		{
    			time.Date(2020, time.March, 15, 10, 10, 10, 0, time.UTC),
    			4,
    			time.Date(2020, time.March, 20, 0, 0, 0, 0, time.UTC),
    		},
    		{
    			time.Date(2020, time.March, 15, 0, 0, 0, 0, time.UTC),
    			1,
    			time.Date(2020, time.March, 17, 0, 0, 0, 0, time.UTC),
    		},
    	}
    
    	for i, tc := range testCases {
    		t.Run(fmt.Sprintf("Test %d", i+1), func(t *testing.T) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

        )
    
      /**
       * A timestamp like "191216030210Z" or "191215190210-0800" for 2019-12-15T19:02:10-08:00. The
       * cutoff of the 2-digit year is 1950-01-01T00:00:00Z.
       */
      val UTC_TIME =
        BasicDerAdapter(
          name = "UTC TIME",
          tagClass = DerHeader.TAG_CLASS_UNIVERSAL,
          tag = 23L,
          codec =
            object : BasicDerAdapter.Codec<Long> {
              override fun decode(reader: DerReader): Long {
    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)
  4. internal/logger/logrotate.go

    				Level:   ErrorKind,
    				Message: msg,
    				Time:    time.Now().UTC(),
    				Trace:   &log.Trace{Message: msg},
    			})
    		}
    		if err := w.rotate(); err != nil {
    			msg := fmt.Sprintf("unable to rotate log file %v: %v", w.f.Name(), err)
    			stdErrEnc.Encode(&log.Entry{
    				Level:   ErrorKind,
    				Message: msg,
    				Time:    time.Now().UTC(),
    				Trace:   &log.Trace{Message: msg},
    			})
    		}
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 11:38:40 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  5. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

        assertThat(Adapters.UTC_TIME.toDer(utcTime)).isEqualTo(bytes)
        assertThat(Adapters.UTC_TIME.fromDer(bytes)).isEqualTo(utcTime)
      }
    
      @Test fun `cannot decode malformed utc time`() {
        val bytes = "170d3139313231362333303231305a".decodeHex()
        assertFailsWith<ProtocolException> {
          Adapters.UTC_TIME.fromDer(bytes)
        }.also { expected ->
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 31.7K bytes
    - Viewed (0)
  6. src/archive/zip/struct.go

    	return
    }
    
    // ModTime returns the modification time in UTC using the legacy
    // [ModifiedDate] and [ModifiedTime] fields.
    //
    // Deprecated: Use [Modified] instead.
    func (h *FileHeader) ModTime() time.Time {
    	return msDosTimeToTime(h.ModifiedDate, h.ModifiedTime)
    }
    
    // SetModTime sets the [Modified], [ModifiedTime], and [ModifiedDate] fields
    // to the given time in UTC.
    //
    // Deprecated: Use [Modified] instead.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http/DateFormatting.kt

     */
    package okhttp3.internal.http
    
    import java.text.DateFormat
    import java.text.ParsePosition
    import java.text.SimpleDateFormat
    import java.util.Date
    import java.util.Locale
    import okhttp3.internal.UTC
    
    /** The last four-digit year: "Fri, 31 Dec 9999 23:59:59 GMT". */
    internal const val MAX_DATE = 253402300799999L
    
    /**
     * Most websites serve cookies in the blessed format. Eagerly create the parser to ensure such
    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)
  8. tests/test_datetime_custom_encoder.py

            dt_field: datetime
    
            @field_serializer("dt_field")
            def serialize_datetime(self, dt_field: datetime):
                return dt_field.replace(microsecond=0, tzinfo=timezone.utc).isoformat()
    
        app = FastAPI()
        model = ModelWithDatetimeField(dt_field=datetime(2019, 1, 1, 8))
    
        @app.get("/model", response_model=ModelWithDatetimeField)
        def get_model():
            return model
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  9. internal/logger/console.go

    	if msg != "" {
    		message = fmt.Sprintf(msg, args...)
    	} else {
    		message = fmt.Sprint(args...)
    	}
    	logJSON, err := json.Marshal(&log.Entry{
    		Level:   FatalKind,
    		Message: message,
    		Time:    time.Now().UTC(),
    		Trace:   &log.Trace{Message: message, Source: []string{getSource(6)}},
    	})
    	if err != nil {
    		panic(err)
    	}
    	fmt.Fprintln(Output, string(logJSON))
    	ExitFunc(1)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  10. schema/serializer.go

    	case int64, int, uint, uint64, int32, uint32, int16, uint16:
    		result = time.Unix(reflect.Indirect(rv).Int(), 0).UTC()
    	case *int64, *int, *uint, *uint64, *int32, *uint32, *int16, *uint16:
    		if rv.IsZero() {
    			return nil, nil
    		}
    		result = time.Unix(reflect.Indirect(rv).Int(), 0).UTC()
    	default:
    		err = fmt.Errorf("invalid field type %#v for UnixSecondSerializer, only int, uint supported", v)
    	}
    	return
    }
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 08:28:46 GMT 2024
    - 4.6K bytes
    - Viewed (0)
Back to top