Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 127 for UTC (0.11 sec)

  1. tests/serializer_test.go

    		t.Fatalf("no error should happen when migrate scanner, valuer struct, got error %v", err)
    	}
    
    	createdAt := time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC)
    	updatedAt := createdAt.Unix()
    
    	data := SerializerStruct{
    		Name:            []byte("jinzhu"),
    		Roles:           []string{"r1", "r2"},
    		Contracts:       map[string]interface{}{"name": "jinzhu", "age": 10},
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 21 14:09:38 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  2. build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/tasks/BuildReceipt.kt

            val isoTimestampFormat = newSimpleDateFormatUTC("yyyy-MM-dd HH:mm:ss z")
    
            private
            fun newSimpleDateFormatUTC(pattern: String) = SimpleDateFormat(pattern).apply {
                timeZone = TimeZone.getTimeZone("UTC")
            }
    
            fun readBuildReceiptFromString(buildReceipt: String) =
                Properties().apply { load(buildReceipt.reader()) }
    
            const val buildReceiptFileName = "build-receipt.properties"
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  3. 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)
  4. .github/workflows/update-nightly.yml

    # limitations under the License.
    # ============================================================================
    
    on:
      workflow_dispatch:  # Allow manual triggers
      schedule:
        - cron: 0 4 * * *  # 4am UTC is 9pm PDT and 8pm PST
    name: Set nightly branch to master HEAD
    
    permissions: {}
    
    jobs:
      master-to-nightly:
        if: github.repository == 'tensorflow/tensorflow' # Don't do this in forks
        runs-on: ubuntu-latest
    Others
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Tue Sep 12 16:45:56 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  5. ci/official/containers/linux_arm64/setup.packages.sh

    #
    # setup.packages.sh: Given a list of Ubuntu packages, install them and clean up.
    # Usage: setup.packages.sh <package_list.txt>
    set -e
    
    # Prevent apt install tzinfo from asking our location (assumes UTC)
    export DEBIAN_FRONTEND=noninteractive
    
    apt-get update
    # Remove commented lines and blank lines
    apt-get install -y --no-install-recommends $(sed -e '/^\s*#.*$/d' -e '/^\s*$/d' "$1" | sort -u)
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Sep 29 00:26:34 GMT 2023
    - 1.1K bytes
    - Viewed (0)
  6. tests/test_jsonable_encoder.py

        class ModelWithCustomEncoder(BaseModel):
            dt_field: datetime
    
            @field_serializer("dt_field")
            def serialize_dt_field(self, dt):
                return dt.replace(microsecond=0, tzinfo=timezone.utc).isoformat()
    
        class ModelWithCustomEncoderSubclass(ModelWithCustomEncoder):
            pass
    
        model = ModelWithCustomEncoder(dt_field=datetime(2019, 1, 1, 8))
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 9K bytes
    - Viewed (0)
  7. cmd/api-headers.go

    func setObjectHeaders(w http.ResponseWriter, objInfo ObjectInfo, rs *HTTPRangeSpec, opts ObjectOptions) (err error) {
    	// set common headers
    	setCommonHeaders(w)
    
    	// Set last modified time.
    	lastModified := objInfo.ModTime.UTC().Format(http.TimeFormat)
    	w.Header().Set(xhttp.LastModified, lastModified)
    
    	// Set Etag if available.
    	if objInfo.ETag != "" {
    		w.Header()[xhttp.ETag] = []string{"\"" + objInfo.ETag + "\""}
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.9K bytes
    - Viewed (1)
  8. buildscripts/gen-ldflags.go

    	}
    
    	t, err := time.Parse(time.RFC3339, strings.TrimSpace(string(commitUnix)))
    	if err != nil {
    		fmt.Fprintln(os.Stderr, "Error generating git commit-time: ", err)
    		os.Exit(1)
    	}
    
    	return t.UTC()
    }
    
    func main() {
    	var version string
    	if len(os.Args) > 1 {
    		version = os.Args[1]
    	} else {
    		version = commitTime().Format(time.RFC3339)
    	}
    
    	fmt.Println(genLDFlags(version))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jun 16 23:10:48 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/RemoteSnapshotMetadata.java

        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)
  10. internal/config/cache/remote.go

    func (oi ObjectInfo) WriteHeaders(w http.ResponseWriter, preamble, statusCode func()) {
    	preamble()
    
    	if !oi.ModTime.IsZero() {
    		w.Header().Set(xhttp.LastModified, oi.ModTime.UTC().Format(http.TimeFormat))
    	}
    
    	if oi.ETag != "" {
    		w.Header()[xhttp.ETag] = []string{"\"" + oi.ETag + "\""}
    	}
    
    	if oi.Expires != "" {
    		w.Header().Set(xhttp.Expires, oi.Expires)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Nov 22 21:46:17 GMT 2023
    - 3.7K bytes
    - Viewed (0)
Back to top