MCPcopy Create free account
hub / github.com/dropbox/dbxcli / getTime

Function getTime

cmd/format.go:46–51  ·  view source on GitHub ↗
(e *files.FileMetadata, opts listOptions)

Source from the content-addressed store, hash-verified

44}
45
46func getTime(e *files.FileMetadata, opts listOptions) time.Time {
47 if opts.timeField == "client" {
48 return time.Time(e.ClientModified)
49 }
50 return time.Time(e.ServerModified)
51}
52
53func sortEntries(entries []files.IsMetadata, opts listOptions) {
54 if opts.sortBy == "" {

Callers 4

TestGetTimeServerFunction · 0.85
TestGetTimeClientFunction · 0.85
entryTimeFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestGetTimeServerFunction · 0.68
TestGetTimeClientFunction · 0.68