Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/docker/compose
/ ToSeconds
Function
ToSeconds
pkg/compose/convert.go:88–94 ·
view source on GitHub ↗
ToSeconds convert into seconds
(d *compose.Duration)
Source
from the content-addressed store, hash-verified
86
87
// ToSeconds convert into seconds
88
func
ToSeconds(d *compose.Duration) *int {
89
if
d == nil {
90
return
nil
91
}
92
s := int(time.Duration(*d).Seconds())
93
return
&s
94
}
Callers
1
getCreateConfigs
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected