- Sort Score
- Num 10 results
- Language All
Results 831 - 840 of 929 for Now (0.19 seconds)
-
tests/test_jsonable_encoder.py
} def test_custom_encoders(): class safe_datetime(datetime): pass class MyDict(TypedDict): dt_field: safe_datetime instance = MyDict(dt_field=safe_datetime.now()) encoded_instance = jsonable_encoder( instance, custom_encoder={safe_datetime: lambda o: o.strftime("%H:%M:%S")} ) assert encoded_instance["dt_field"] == instance["dt_field"].strftime("%H:%M:%S")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 9.2K bytes - Click Count (0) -
cmd/untar.go
continue } // If zero or earlier modtime, set to current. // Otherwise the resulting objects will be invalid. if header.ModTime.UnixNano() <= 0 { header.ModTime = time.Now() } // Sync upload. rc := disconnectReader{r: tarReader} if err := putObject(&rc, header.FileInfo(), name); err != nil { rc.Close() if o.ignoreErrs { s3LogIf(ctx, err) continue
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 6K bytes - Click Count (2) -
cmd/xl-storage-format-utils_test.go
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 7.1K bytes - Click Count (0) -
internal/lsync/lrwmutex.go
// timing randomized back-off algorithm to try again until successful func (lm *LRWMutex) lockLoop(ctx context.Context, id, source string, timeout time.Duration, isWriteLock bool) (locked bool) { r := rand.New(rand.NewSource(time.Now().UnixNano())) retryCtx, cancel := context.WithTimeout(ctx, timeout) defer cancel() for { select { case <-retryCtx.Done(): // Caller context canceled or we timedout,
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Jan 02 17:15:06 GMT 2022 - 4.8K bytes - Click Count (0) -
cmd/metacache_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "testing" "time" ) var metaCacheTestsetTimestamp = time.Now() var metaCacheTestset = []metacache{ 0: { id: "case-1-normal", bucket: "bucket", root: "folder/prefix", recursive: false, status: scanStateSuccess,
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Sep 08 18:06:45 GMT 2021 - 6.8K bytes - Click Count (0) -
internal/config/identity/openid/jwt_test.go
claimsMap := jwtm.NewMapClaims() claimsMap.SetExpiry(time.Now().Add(time.Minute)) claimsMap.SetAccessKey("test-access") if err := updateClaimsExpiry("3600", claimsMap.MapClaims); err != nil { t.Error(err) } // Build simple token with updated expiration claim
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 8.2K bytes - Click Count (0) -
cmd/bucket-replication.go
// The source object is then updated to reflect the replication status. func (ri ReplicateObjectInfo) replicateObject(ctx context.Context, objectAPI ObjectLayer, tgt *TargetClient) (rinfo replicatedTargetInfo) { startTime := time.Now() bucket := ri.Bucket object := ri.Name rAction := replicateAll rinfo = replicatedTargetInfo{ Size: ri.ActualSize, Arn: tgt.ARN,
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 118.2K bytes - Click Count (0) -
docs/debugging/inspect/main.go
switch { case *keyHex != "": // Backup any already existing output file _, err := os.Stat(outputFileName) if err == nil { err := os.Rename(outputFileName, outputFileName+"."+time.Now().Format("20060102150405")) if err != nil { fatalErr(err) } } output, err := os.Create(outputFileName) fatalErr(err) msg := fmt.Sprintf("output written to %s", outputFileName)Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Feb 17 17:09:42 GMT 2025 - 5.7K bytes - Click Count (0) -
cmd/erasure-server-pool.go
bootstrapTrace("initAutoHeal", func() { initAutoHeal(GlobalContext, z) }) // initialize the object layer. defer setObjectLayer(z) r := rand.New(rand.NewSource(time.Now().UnixNano())) attempt := 1 for { var err error bootstrapTrace(fmt.Sprintf("poolMeta.Init: loading pool metadata, attempt: %d", attempt), func() { err = z.Init(ctx) // Initializes all pools. })
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 89.2K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/suggest/settings/ElevateWordSettings.java
source.put(ELEVATE_WORD_TAGS, elevateWord.getTags()); source.put(ELEVATE_WORD_ROLES, elevateWord.getRoles()); source.put(FieldNames.TIMESTAMP, DateTimeFormatter.ISO_INSTANT.format(ZonedDateTime.now())); arraySettings.addToArrayIndex(arraySettings.arraySettingsIndexName, arraySettings.settingsId, arraySettings.createId(ELEVATE_WORD_SETTINGS_KEY, elevateWord.getElevateWord()), source); }
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Mon Nov 24 03:40:05 GMT 2025 - 7.5K bytes - Click Count (0)